ImageMagick Resize Images Proportionately in Landscape & Portrait Mode

ImageMagick Resize Images Proportionately in Landscape & Portrait Mode

The answer, as Mark suggested, ended up being using the -resize flag with only one parameter, e.g.: -resize 2000. When only one parameter is specified, the longest side will be 2000 (the other dimension will be scaled automatically and proportionately).

The caveat was, if youre using the -auto-orient flag in the same command, make sure to place -auto-orient AFTER -resize. That way, ImageMagick disregards image orientation when resizing.

mogrify -path C:UsersJoeDesktopFolderNew -resize 2000 -format jpg -quality 75 -auto-orient C:UsersJoeDesktopFolder*.jpg

The key being calling -resize BEFORE -auto-orient.

ImageMagick Resize Images Proportionately in Landscape & Portrait Mode

Leave a Reply

Your email address will not be published.