Batch Compress Images Using find and ImageMagick

This command recursively searches a directory for any file that ends in .jpg and resizes and compresses it.

find . -iname "*.jpg" -type f -exec convert -strip -interlace Plane -quality 85% -geometry 3000x {} {} \;

 

Leave a Reply

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