I wrote a script to generate psuedo-random thumbnail images

colorful lines across a black background at a slight angle. blue, tan, red, teal, and pink

I’ve been building my sound blog and want each entry to have its own image. Since the entries are audio, for most people there’s no image to look at. I wrote a script to generate small images I can use.

The script grabs a random image file from a specific directory and does a number of operations on it. Things like increasing saturation, dithering, edge detection, and pixelating change the image into something mostly unrecognizable. I think its output looks cool. Colorful, glitchy, and weird. Just the way I like it.

Here are some examples:

There are similarities between them but overall I like the variation.

The script uses Imagemagick to wrangle the images, and there are many more operations you can do to images. In the future maybe I’ll add them to the script.

If you’re interested, here is the code that generated the images. If you want to run it yourself, you’ll need to have Imagemagick installed and change the paths at the top of the script. On Mac or Linux you already have bash, so you’re good to go. On Windows I’d recommend using Cygwin or Git Bash.

Make some rad images!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.