Part of creating a web site often involves creating photo galleries of the clients products. Usually this means the designer recieves a number of photos and must resize them into thumbnails, then link them to larger pictures.
This is a boring and laborious process; photo gallery software is available (e.g. Gallery etc.), but is excessive for simple projects that are not updated often.
This web designer spent an evening (and early morning) hacking and came up with: ‘Thumbnailor’ (spelling intentionally incorrect). Thumbnailor is a small script for resizing lots of images, it was written as a Linux script that requires ImageMagick and is—of course—distributed under the GNU GPL.
You don't need to know what all that means. Although a working knowledge of Linux (or similar OS) helps.
To use Thumbnailor, complete the following steps: —
convert at a command line. If you get information on how to use convert, and details of ImageMagick’s web site, then it is installed.cd ~/bin/. Then give permission for the script to execute by typing: chmod +x thumbnailor. You may need to be the root user to do this, depending on where you saved the file.cd ~/images/thumbtestthumbnailor "*.jpg" 150 70 . Assuming the images you wished to convert were JPEG’s, you should see a new directory named ‘thumbs’ appear. The thumbnails are in there, open the directory and view some of the files using your favourite image viewer. If you recieve a: ‘command not found’ error, the full path to thumbnailor needs to be entered when running it, e.g. ~/downloads/thumbnailor "*.jpg" 150 70.This should be enough information to start using Thumbnailor. This is the first time the script has been published so probably has a number of bugs, but if used responsibly could be very useful.
It was created for a production project, where it was used to good effect, hopefully others can also put it to good use too, and if you find a problem: let me know!
During that production project I also used ImageMagick from the Linux command-line to resize the larger images in the gallery. This will be explored in another article, later in this series.