Added other sizes
This commit is contained in:
parent
cdea419a02
commit
2a3d7c23e2
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue