Page 1 of 1

Mogrify Resize has no effect

Posted: 2019-09-10T23:28:16-07:00
by geno11x11
Ref: ImageMagick-7.0.8-64-Q16-x64-dll

Hello all,

I am trying to restrict the height of a directory of .jpg files to 1080px on the vertical axis and to leave untouched those already within that boundary. The logic is to check all .jpg files with a vertical height greater than 1080px and reduce those above that dimension to 1080px while maintaining the aspect ratio (thereby flexing the horizontal axis), and save to the original filename. I have met with no luck so far...

My first command was: Magick Mogrify *.jpg -resize 'x1080>'

which resulted in a syntax error. After reviewing examples found online I ended up with the following command which was syntax-error free:

Magick Mogrify *.jpg -resize x1080

However, this command resulted in no changes to the files. What am I doing wrong???

Re: Mogrify Resize has no effect

Posted: 2019-09-11T04:30:36-07:00
by snibgo
See documentation at http://www.imagemagick.org/script/mogrify.php

Your syntax is wrong. Put "*.jpg" at the end.

Re: Mogrify Resize has no effect

Posted: 2019-09-11T11:00:47-07:00
by geno11x11
That did the trick, Thx!