Created
January 29, 2014 10:52
-
-
Save vini-btc/8685678 to your computer and use it in GitHub Desktop.
Script for optimizing all .jpg images inside a folder, using jpegoptim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ~/path-to-your-folder/* -type f -name *.jpg | xargs jpegoptom --all-progressive *.jpg |
CHANGE THIS
xargs jpegoptom → xargs jpegoptim.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Misprint:
xargs jpegoptom
→xargs jpegoptim
.