Compress PNG images losslessly with zopflipng

This commit is contained in:
Peter Dave Hello 2020-01-02 20:19:35 +00:00 committed by Hans-Christoph Steiner
parent 25262e4463
commit a7fa47e3e9

View File

@ -8,6 +8,7 @@ for f in `find $(dirname $0)/../app/src/ -type f -name \*.png`; do
tmpfile=$(mktemp) tmpfile=$(mktemp)
aapt singleCrunch -v -i $f -o $tmpfile aapt singleCrunch -v -i $f -o $tmpfile
exiftool -all= $tmpfile exiftool -all= $tmpfile
zopflipng--iterations=50 --keepchunks=iCCP --lossy_transparent --splitting=3 -my $tmpfile $tmpfile
mv $tmpfile $f mv $tmpfile $f
done done