fix some styles, bench 64

This commit is contained in:
2018-07-29 17:56:53 -07:00
parent fc726b7414
commit deb7b875c7
7 changed files with 21 additions and 16 deletions

8
bench.sh Normal file → Executable file
View File

@@ -6,8 +6,12 @@ set +x
for FILE in img/bench/webp-src/*.jpg; do
OUT="${FILE%.*}.webp"
OUT2X="${FILE%.*}@2x.webp"
cwebp -mt -resize 160 0 -q 40 $FILE -o $OUT
cwebp -mt -q 40 $FILE -o $OUT2X
if [ ! -f ../$OUT ]; then
cwebp -mt -resize 160 0 -q 40 $FILE -o $OUT
fi
if [ ! -f ../$OUT2X ]; then
cwebp -mt -q 40 $FILE -o $OUT2X
fi
done
mv img/bench/webp-src/*.webp img/bench/