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? >------------------------------ >Message: 3 >Date: Mon, 14 Apr 2008 21:38:55 -0700 >From: Fred Weinhaus <[EMAIL PROTECTED]> >Subject: [magick-users] Minimum dimension on resize? >To: [email protected] >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset="us-ascii" ; format="flowed" > >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. _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
