Mogrify Resize has no effect

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
geno11x11
Posts: 3
Joined: 2019-09-10T22:50:03-07:00
Authentication code: 1152

Mogrify Resize has no effect

Post 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???
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Mogrify Resize has no effect

Post by snibgo »

See documentation at http://www.imagemagick.org/script/mogrify.php

Your syntax is wrong. Put "*.jpg" at the end.
snibgo's IM pages: im.snibgo.com
geno11x11
Posts: 3
Joined: 2019-09-10T22:50:03-07:00
Authentication code: 1152

Re: Mogrify Resize has no effect

Post by geno11x11 »

That did the trick, Thx!
Post Reply