Yes, see the ^ modifier for -resize
http://www.imagemagick.org/script/command-line-options.php#resize
convert inputimage -resize 100^ outputimage
will resize the input image so that its mimimum dimension will be 100
and its maximum dimension will be larger but in proportion
maintaining aspect ratio.
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?
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users