Last active
February 19, 2016 16:47
-
-
Save lavoiesl/11024067 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| # | |
| # @link https://gist.github.com/lavoiesl/11024067 | |
| find . -type f \( -name '*.jpg' -or -name '*.jpeg' \) -exec jpegoptim --strip-all "{}" \; | |
| find . -type f -name '*.png' -exec optipng -o8 -strip all '{}' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment