Updated fix_png.sh script. Use brute key.
--HG-- branch : develop
This commit is contained in:
parent
39f7727088
commit
ab0dfd8d39
|
@ -9,6 +9,7 @@
|
||||||
# -ow will overwrite the input file
|
# -ow will overwrite the input file
|
||||||
# -rem allb will remove all ancillary chunks except tRNS and gAMA
|
# -rem allb will remove all ancillary chunks except tRNS and gAMA
|
||||||
# -reduce does lossless color-type or bit-depth reduction
|
# -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.
|
#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
|
#You will end up with a smaller, optimized png file. As the command will overwrite the original file, make
|
||||||
|
@ -19,4 +20,7 @@
|
||||||
# usage:
|
# usage:
|
||||||
# $ ./fix_png.sh
|
# $ ./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 {} \;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user