Resize width to x pixels while keeping w/h ration

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
locoroco
Posts: 1
Joined: 2011-02-16T13:19:31-07:00
Authentication code: 8675308

Resize width to x pixels while keeping w/h ration

Post by locoroco »

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?
Tagomago
Posts: 36
Joined: 2011-02-10T09:55:33-07:00
Authentication code: 8675308

Re: Resize width to x pixels while keeping w/h ration

Post by Tagomago »

convert -resize [desired width] input.jpg output.jpg will keep proportions.
User avatar
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

Post by fmw42 »

Post Reply