Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Use pngcrush to batch reduce the size of a collection of PNG images
# Reference:
for png in `find $1 -name "*.png"`;
echo "crushing $png"
pngcrush -rem allb -brute -reduce "$png" temp.png
mv -f temp.png $png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment