diff --git a/scripts/fix_png.sh b/scripts/fix_png.sh index 658c3a054..a7c4f64e3 100755 --- a/scripts/fix_png.sh +++ b/scripts/fix_png.sh @@ -9,6 +9,7 @@ # -ow will overwrite the input file # -rem allb will remove all ancillary chunks except tRNS and gAMA # -reduce does lossless color-type or bit-depth reduction +# -brute — attempt all optimization methods #In the console output you should see "Removed the sRGB chunk.", and possibly more messages about chunk removals. #You will end up with a smaller, optimized png file. As the command will overwrite the original file, make @@ -19,4 +20,7 @@ # usage: # $ ./fix_png.sh -find .. -type f -iname '*.png' -exec pngcrush -ow -rem allb -reduce {} \; +# IMPORTANT!!! Use version 1.7.85 or higher. + +find .. -type f -iname '*.png' -exec pngcrush -ow -rem allb -brute -reduce {} \; +