Merge pull request 'fix crushpng' (#318) from disable-oxipng into main
Reviewed-on: #318
This commit is contained in:
commit
a31d65ab2c
1 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,10 @@
|
|||
|
||||
set -ex
|
||||
|
||||
[ "$(wc -c $1 | awk '{print $1}')" -le $3 ] && (cp $1 $2; exit 0)
|
||||
if [ "$(wc -c $1 | awk '{print $1}')" -le $3 ]; then
|
||||
cp $1 $2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for i in $(seq 100 -1 0); do
|
||||
cat $1 | pngquant --quality 0-$i - > $2
|
||||
|
|
Reference in a new issue