Resize width to x pixels while keeping w/h ration
Resize width to x pixels while keeping w/h ration
I need some jpg images to be below 750 pixels. How do I resize them to e.g. 740 pixels while keeping the old dimensions of the image?
Re: Resize width to x pixels while keeping w/h ration
convert -resize [desired width] input.jpg output.jpg will keep proportions.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Resize width to x pixels while keeping w/h ration
the correct syntax is
convert input.jpg -resize [desired width] output.jpg
see
http://www.imagemagick.org/script/comma ... php#resize
http://www.imagemagick.org/script/comma ... p#geometry
http://www.imagemagick.org/Usage/basics/#cmdline
convert input.jpg -resize [desired width] output.jpg
see
http://www.imagemagick.org/script/comma ... php#resize
http://www.imagemagick.org/script/comma ... p#geometry
http://www.imagemagick.org/Usage/basics/#cmdline