Skip to content

Instantly share code, notes, and snippets.

@lukkor
Last active February 18, 2019 09:48
Show Gist options
  • Save lukkor/d866517f63c101196fb7078cdad770b8 to your computer and use it in GitHub Desktop.
Save lukkor/d866517f63c101196fb7078cdad770b8 to your computer and use it in GitHub Desktop.
Generate random image of given resolution
# From https://unix.stackexchange.com/questions/289572/random-image-generator
mx=320;my=256;head -c "$((3*mx*my))" /dev/urandom | convert -depth 8 -size "${mx}x${my}" RGB:- random.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment