Created
January 25, 2017 02:18
-
-
Save kvzhuang/c6c1968de2bbf445330dcf7edca41ac7 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
#sudo apt-get install jpegoptim optipng | |
find . -type f -name "*.jpg" -exec jpegoptim -m80 {} \; | |
find . -type f -name "*.png" -exec optipng {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment