Chris,

It is supposed to work that way. I just took an image 756x572 and did

convert zelda_sub.png -resize 100^ zeldatmp.png

and got back an image of size 132x100. So it did take the smaller of the two sizes and scale that to 100 and the larger was scaled in proportion to 132.

Perhaps there is a bug with very large or very asymmetric sizes.

The other issue is that this is a relatively recent addition to IM. It was added in IM 6.3.8-2. What version of IM are you using?



Thanks, but your suggestion didn't work the way I intended. I supplied an image that was 5540w x 1697x (a panoramic), and did this command:

convert image.jpg -resize 480^ imageout.jpg

What I got was an image that was 480w x 147h, so it took the LARGER of the two dimensions and scaled it to the size I asked for. I wanted it to take the SMALLER, and give me an image 1567w x 480h.

If on the other hand my image was 1697w x 5540h, then I would want the same command to set the width to 480 instead of the height, yielding an image 480w x 1567h.

Can IM do what I'm asking?

Thanks,

...Chris.



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

Reply via email to