About

This is a Perl script used with ImageMagick and Image::Size to convert a directory (or directories) of images to thumbnails.

This thumbnail script is multi-threaded to take advantage of multi-processor and dual-core/multi-core computers. This is useful because thumbnail creation can sometimes take quite awhile if there are a large number of images to be converted.

This script will preserve the entire directory structure with one addition: each directory will have additional sub-directories for each thumbnail size.

Example:

Resulting directory structure (with thumb nail sizes of 150x150 and 600x600):

Installation

This is just a Perl script, but it requires that both ImageMagick be installed and in the system path and the Perl library Image::Size also be installed. On modern Linux systems, these items are often installed already.

Setup

There are just a few setup items in order for this script to function:

$Path
Root location where images to be converted to thumbnail resides
$OutputPath
Root location where thumbnail images will be created
@Sizes
List of what thumbnail sizes are desired, specified width x height
$EXIF_DataSize
List of what thumbnail sizes will retain EXIF data
$FileTypes
Regular expression for what file extentions should be converted.
$NumberOfThreads
Number of threads used to do conversions. This should be set to the number of CPUs or total cores in the computer to take full advantage of the system's processing power.

Download

Download

Copyright

This Perl thumbnail script is is free, open-source software released under the GNU license.

Author

This version of Columns was written by Andrew Que