in reply to creating thumbnails

There are a couple of popular graphics libraries with Perl interfaces. GD is one and Image::Magick is another. They're both fairly well documented.