Updated Imagemagick Thumbnail script

A few years ago, I posted a script that I used for generating image thumbnails. I’ve changed my usage of it, so I’m posting another go of it. Since then, OSX has shipped, the Imagemagick .pkg distribution comes with the perl bindings, and I’ve figured out that I generally just want three sizes and 90 degree rotations for the images.

So I generate three sizes into a seperate directory from (usually) 1600px max size images: a 175px (thumbnail, -tm), 400px (medium, -md) and 800px (penultimate, -pt). There’s also a straight 90 degree rotation for each size that gets a -r in the filename. There are also a few index.html files for that quick web based overview.

Call the script using

perl thumbnail.pl directory

This script assumes that your source images are in ~/Pictures/directory/, and that the output should be put in ~/Sites/thumbs/directory/. Edit the paths if you want them in different locations.

Download thumbnail.pl.

No comments

No comments yet. Be the first.

Leave a reply

You must be logged in to post a comment.