How to Use ImageMagick's mogrify Command for Batch Image Size Conversion
I’ll introduce how to use ImageMagick’s mogrify command for batch image size conversion.
brew install imagemagick
When you install ImageMagick, you can use the convenient mogrify command for batch image processing.
mogrify -resize 50% *.jpg
Resize the width of specified images while maintaining aspect ratio and batch convert them.
mogrify -resize 1200x *.jpg
Resize the height of specified images while maintaining aspect ratio and batch convert them.
mogrify -resize x630 *.jpg
That’s all from the Gemba.