Created
June 12, 2010 19:04
-
-
Save premasagar/435982 to your computer and use it in GitHub Desktop.
Highest minification with pngcrush
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
# single image | |
pngcrush -rem alla -brute -reduce src.png dest.png | |
# directory of images | |
pngcrush -rem alla -brute -reduce -d outputdir ./*.png |
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
# adapted from http://davidwalsh.name/pngcrush-directory | |
#!/bin/sh | |
for png in `find $1 -name "*.png"`; do; pngcrush -rem alla -brute -reduce "$png" temp.png; mv -f temp.png $png; done |
Author
premasagar
commented
May 4, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment