Scale and compress multiple images

A few commands for image manipulation on the command line.

The mogrify tool is part of imagemagick

# sudo apt-get install imagemagick

Resize images 50%

# find . -name '*.png' -execdir mogrify -resize 50% {} \;

Compress

 # find . -name '*.png' -execdir mogrify -format jpg -quality 95 {} \;

Published by Nimpen J. Nordström

System Developer and Network Security Enthusiast

Leave a comment

Your email address will not be published. Required fields are marked *