Last active
September 9, 2016 07:02
-
-
Save christianmondabon/bf417886a18666492bb39054758cdb32 to your computer and use it in GitHub Desktop.
Automatically minimize PNG 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
Caution: This oneliner replaces all PNG in current directory and all subdirectories! | |
Fast and nearly optimal size (use this!): | |
find . -name '*.png' -print0 | xargs -0 optipng -o2 -strip all | |
Slow and optimal size: | |
find . -name '*.png' -print0 | xargs -0 optipng -o7 -strip all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment