in reply to Image::Magick - thumbnail compression question

Reducing a size of an image isn't always a guarantee that it'll take fewer bytes to store in a given image format.

You might consider using JPGs and reducing the quality until the size is sufficiently reduced.

By the way, thumbnails are easier than you show. To make a thumbnail that is 50%:

my $thumb = $src->Clone; $thumb->scale(Geometry => '50%');
or to make a thumbnail that is less than 100x100 (in both directions), proportionally reduced (that is, if it's 400x200 originally, it'll be 100x50 when you're done):
my $thumb = $src->Clone; $thumb->scale(Geometry => '100x100');
It just Does The Right Thing.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Image::Magick - thumbnail compression question
by crenz (Priest) on Apr 22, 2003 at 08:56 UTC

    Randal has already given you excellent advice. One more point: If JPG isn't suitable for your thumbnails, you might want to try out PNG. With a good PNG encoder, I manage to beat GIF file sizes most of the time, often substantially. Look for pngcrush to get even smaller files.