2017-09-02 23:01:09 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
for f in `find $(dirname $0)/../app/src/ -type f -name \*.png`; do
|
|
|
|
echo $f | grep -Eo '\.9\.png$' && continue # do not optimized 9-patch, it breaks them
|
|
|
|
tmpfile=$(mktemp)
|
|
|
|
aapt singleCrunch -v -i $f -o $tmpfile
|
2018-03-07 23:16:16 +01:00
|
|
|
exiftool -all= $tmpfile
|
2017-09-02 23:01:09 +02:00
|
|
|
mv $tmpfile $f
|
|
|
|
done
|
2018-03-07 23:16:16 +01:00
|
|
|
|
|
|
|
for f in metadata/*/images/*Screenshots/*.png; do
|
|
|
|
exiftool -all= $f
|
|
|
|
tmpfile=$(mktemp)
|
|
|
|
(zopflipng --filters=01234mepb --lossy_8bit --lossy_transparent -y $f $tmpfile && mv $tmpfile $f) &
|
|
|
|
done
|