Resize height command operating on wrong axis
Posted: 2019-09-29T19:20:34-07:00
I need to reduce the height of all images in a directory to a maximum of 1080 pixels.
The command line: magick mogrify -resize x1080 *.jpg should have done just that. However, a number of files were left unmodified; their height pixels count at 1440.
After consulting the IM manual the command appeared to be correct. On a hunch, I thought perhaps the orientation was being confused by IM. I modified the command line to: magick mogrify -resize 1080 *.jpg. This command line should reduce the width however it succeeded in reducing the height of a previously unmodified portrait file from 1440 to 1080.
Please explain what is going on here. IM seems to be treating portrait oriented images as Landscape images.
The command line: magick mogrify -resize x1080 *.jpg should have done just that. However, a number of files were left unmodified; their height pixels count at 1440.
After consulting the IM manual the command appeared to be correct. On a hunch, I thought perhaps the orientation was being confused by IM. I modified the command line to: magick mogrify -resize 1080 *.jpg. This command line should reduce the width however it succeeded in reducing the height of a previously unmodified portrait file from 1440 to 1080.
Please explain what is going on here. IM seems to be treating portrait oriented images as Landscape images.