From ab0dfd8d39ab262b49e6424502a6272c9e340c44 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 27 Jun 2016 18:44:40 +0300 Subject: [PATCH] Updated fix_png.sh script. Use brute key. --HG-- branch : develop --- scripts/fix_png.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {} \; +