fix some styles, bench 64
This commit is contained in:
8
bench.sh
Normal file → Executable file
8
bench.sh
Normal file → Executable 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/
|
||||
|
||||
Reference in New Issue
Block a user