Created
March 11, 2014 10:14
-
-
Save longwave/9482947 to your computer and use it in GitHub Desktop.
Optimize PNG files in place, with pngcrush and optipng
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/sh | |
for i in `find . -name "*.png"`; do | |
pngcrush -e .png2 -rem allb -brute -reduce $i | |
mv ${i}2 $i | |
optipng -o7 $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment