Merge branch 'OptimizePNG' into 'master'

Compress PNG images losslessly with zopflipng

See merge request fdroid/fdroidclient!844
This commit is contained in:
Hans-Christoph Steiner 2020-01-02 20:19:35 +00:00
commit ab81295639
1 changed files with 1 additions and 0 deletions

View File

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