Mass Image Processing

Posted by anup.narkhede on February 01, 2009

I ran into a requirement to create thumbs of all images in my content folder. This shell script can be used to create thumbs of all images or for mass conversion of file formats. The script scans for images with the specified format in all subdirectories and puts the processed file in same path.

The constants can be modified to define the source directory, resolution, source and target filetypes. You need to have ImageMagick installed and configured to get this script working.

The script will create thumbs for each image file in same directory with ‘.thumb’ before the extension.
For ex: my_cool_pic.jpg will have a thumbnail named as my_cool_pic.thumb.png.