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 » 2011-02-16T13:24:06-07:00

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 » 2011-02-16T13:50:25-07:00

convert -resize [desired width] input.jpg output.jpg will keep proportions.

User avatar
fmw42
Posts: 25400
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 » 2011-02-16T14:43:22-07:00


Post Reply