Skip to content

Instantly share code, notes, and snippets.

@zafarella
Last active October 15, 2015 03:01
Show Gist options
  • Save zafarella/71bcbf1dee6c6858b380 to your computer and use it in GitHub Desktop.
Save zafarella/71bcbf1dee6c6858b380 to your computer and use it in GitHub Desktop.
compress JPG files in batch using imagick
#!/bin/bash
for f in *.JPG
do
mogrify -verbose -quality "97%" -resize 2048x2048 -filter Lanczos -interlace Plane ${f} _${f}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment