Created
April 10, 2015 01:45
-
-
Save jcordeiro/61e516d41a6b34a42166 to your computer and use it in GitHub Desktop.
Loops through a directory of .png files and uses pngquant to optimize them and shrink their size
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 | |
for PNG in $(find . -name '*.png'); do | |
pngquant -ext .png -force 256 ${PNG} | |
echo "Optimized PNG: ${PNG}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment