Image/Thumbnail version 0.5 =========================== NAME Image::Magick::Thumbnail - Produces thumbnail images with ImageMagick SYNOPSIS use Image::Magick::Thumbnail; # Load your source image my $src = new Image::Magick; $src->Read('source.jpg'); # Create the thumbnail from it, where the biggest side is 50 px my ($thumb,$x,$y) = Image::Magick::Thumbnail::create($src,50); # Save your thumbnail $thumb->Write('source_thumb.jpg'); # Create another thumb, that fits into the geometry my ($thumb,$x,$y) = Image::Magick::Thumbnail::create($src,'60x50'); __END__ INSTALLATION To install this module type the following: perl Makefile.PL make make test make install DESCRIPTION This module uses the ImageMagick library to create a thumbnail image with no side bigger than you specify. There is no OO API, since that would seem to be over-kill. The subroutine "create" takes two arguments: the first is an ImageMagick image object, the second is either the size in pixels you wish the longest side of the image to be, or an "Image::Magick"-style 'geometry' (eg "100x120") which the thumbnail must fit. It returns an ImaegMagick image object (the thumbnail), as well as the number of pixels of the *width* and *height* of the image, as integer scalars. PREREQUISITES Image::Magick EXPORT None by default. AUTHOR Lee Goddard SEE ALSO perl, Image::Magick, Image::GD::Thumbnail. COPYRIGT Copyright (C) Lee Godadrd 2001-2005. All rights reserved. Available under the same terms as Perl itself.