Skip to content

Instantly share code, notes, and snippets.

@rietta
Created October 2, 2013 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rietta/6789193 to your computer and use it in GitHub Desktop.
Save rietta/6789193 to your computer and use it in GitHub Desktop.
Aggressively compress all png files in a folder. Install the following from homebrew first:
#!/bin/sh
for png in `find $1 -name "*.png"`;
do
echo "crushing $png"
pngcrush -brute "$png" temp.png
mv -f temp.png $png
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment