Page 1 of 1
Image resize problem
Posted: 2007-10-25T15:42:20-07:00
by magickman
When I converted this image:
to 300x200 using imagemagick, convert IMG.jpg -resize 300x200 newIMG.jpg,
I don't get width 300 and height 200. After conversion, height always greater than the width.
Any idea why?
Re: Image resize problem
Posted: 2007-10-26T05:25:12-07:00
by Bonzo
ImageMagick will resize to the largest size defined and resize the other edge to keep the aspect ratio.
If you want to force different sizes etc. you will need to tell it.
http://www.imagemagick.org/script/comma ... php#resize
Re: Image resize problem
Posted: 2007-10-30T19:16:58-07:00
by anthony
Basically it 'fits' the image into the size given, and preserves the aspect ratio.
If you don't want it to preserve the aspect ratio add a '!' flag.
http://imagemagick.org/Usage/resize/