Skip Menu |

This queue is for tickets about the Image-Thumbnail CPAN distribution.

Report information
The Basics
Id: 5825
Status: resolved
Worked: 11 min
Priority: 0/
Queue: Image-Thumbnail

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.42
Fixed in: (no value)



Subject: support specifying both max and width of target thumbnail
Hello Lee, Thanks for your work on Image::Thumbnail. I'm interested to use it to make CGI::Uploader portable between GD and Magick. I would like for 'size' to support specifying both a width and a height. If your target ship is particular non-square, having a single number for 'size' is sub-optimal. It can result in images that are much smaller than the target, or that match the longest side, but are much too big. I like the Image::Magick API of 'geometry => '200x300'. Maybe you could just check to see if 'size' has an "x" in it, and then split it into a max width and max height if it does?
I think this is what you want, but I'm not certain. If you try it and it turns out to be useless, please do let me know and I'll add some more code with the next update, which should be soon, since I want to add a couple more creation optiosn to make use of updates to Image::Magick itself. Cheers, Lee