Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Imagemagick: Convert to fixed width, proportional height

Tags:

imagemagick

Using the imagemagick convert command, how can I resize an image to a fixed width and proportional height e.g. using the -resize or the -thumbnail option?

like image 507
Christof Aenderl Avatar asked Aug 26 '11 06:08

Christof Aenderl


1 Answers

Use -resize 100x to resize images to 100 pixels in width while maintaining the height's aspect ratio.

Read the fine ImageMagick manual for details.

like image 50
moropus Avatar answered Dec 30 '22 07:12

moropus