Created
January 21, 2015 14:39
-
-
Save tagliala/7e2dcd600cc015b07a8a to your computer and use it in GitHub Desktop.
Recursively optimize images
This file contains hidden or 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 . -name "*.jpg" -type f -exec jpegtran -copy none -optimize -progressive -outfile {} {} \; | |
find . -name "*.png" -type f -exec optipng {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment