Added other sizes

This commit is contained in:
DrMint 2022-02-19 05:20:52 +01:00
parent cdea419a02
commit 2a3d7c23e2
1 changed files with 12 additions and 0 deletions

View File

@ -3,7 +3,19 @@ mkdir public/small
mkdir public/medium mkdir public/medium
mkdir public/large mkdir public/large
echo "Working on small images"
for f in ../strapi.accords-library.com/public/uploads/*; do
filename=$(basename "$f")
./cwebp -short -m 6 -q 60 -alpha_q 60 -mt -resize 0 512 $f -o public/small/${filename%.*}.webp
done
echo "Working on medium images"
for f in ../strapi.accords-library.com/public/uploads/*; do
filename=$(basename "$f")
./cwebp -short -m 6 -q 75 -alpha_q 75 -mt -resize 0 1024 $f -o public/medium/${filename%.*}.webp
done
echo "Working on large images" echo "Working on large images"