Not a Tango, nothing to see here

May 3, 2011

Thumbnails… and lots of them.

Filed under: Linux — Tags: , — antitango @ 7:13 pm

So I needed some thumbnails.  I wanted them created in a subdirectory relative to the location of the image.  For instance, if you have dir/filename.jpg it would scale the image down to a specific width/height and drop it into dir/image_thumbs/filename.thumb.jpg.  I could not find anything to handle this at the filesystem level, so I had to write one myself…  Bash to the rescue!  This script requires ImageMagick and a relatively new version of bash due to globstar.


Blog at