[magick-users] Minimum dimension on resize?
Chris Miller
chris at tophermiller.com
Mon Apr 14 20:58:40 PDT 2008
Hi,
I'm new to Image Magick. I'm hoping it can do something I'm currently doing with another technology, but so far I haven't found the right parameters. What I want is to resize an image by supplying the minimum of the two dimensions. For example, I want to supply "480" and if the image is a vertical portrait, I want it to end up 480 wide by whatever height it was (probably 640). However, if it was a landscape image, I want the HEIGHT to end up 480, for an image that is 640x480.
So, I want to say "resize the smaller of the two dimensions to the size I specify, and keep the aspect ratio the same".
Can I do that?
More information about the Magick-users
mailing list