Merge pull request 'fix crushpng' (#317) from disable-oxipng into main

Reviewed-on: #317
This commit is contained in:
Charlotte 🦝 Delenk 2023-09-09 10:27:44 +00:00
commit af35c613b0
Signed by: gitea-bot
GPG key ID: C9974EDF9932B558

View file

@ -2,7 +2,7 @@
set -ex
[ "$(wc -c $1 | awk '{print $1}')" -le $3 ] && exit 0
[ "$(wc -c $1 | awk '{print $1}')" -le $3 ] && (cp $1 $2; exit 0)
for i in $(seq 100 -1 0); do
cat $1 | pngquant --quality 0-$i - > $2