Command to Resize Image and Keep Image Aspect Ratio

These command line examples will resize the image file down to a max of 720×230 px, while keeping the image aspect ratio.

To resize a PNG file named “image.png”:

mogrify -resize 720x230 image.png

To resize a JPG image:

mogrify -resize 720x230 other-image.jpg

To resize all PNG image files at once:

mogrify -resize 720x230 *.png

See more:


Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this: