coldfingertips has asked for the wisdom of the Perl Monks concerning the following question:
I'm creating an image gallery and I want to thumbnail images for the category view. I don't want all of them to be 100x100 blocks as that'll mis-proportion some of them.
Can someone help me figure out how to have a $max_h and $max_w determine the size of the thumbnail whereas both sides must be less than or equal to (obviously the one side of the image should match with one of the max_h or max_w) all the while keeping the image in proportion?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Thumbnailing with image::magick
by wind (Priest) on Aug 21, 2007 at 01:09 UTC | |
|
Re: Thumbnailing with image::magick
by kyle (Abbot) on Aug 21, 2007 at 00:58 UTC | |
|
Re: Thumbnailing with image::magick
by spatterson (Pilgrim) on Aug 23, 2007 at 10:49 UTC |