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 {} \;

Leave a comment

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