feat(bin): compress images

This commit is contained in:
Flinner Yuu 2022-05-23 00:43:44 +03:00
parent f0a4dd630f
commit dd81582a70
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
1 changed files with 14 additions and 0 deletions

14
bin/bin/compress-image.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
echo "compresing $1"
echo "to compress-$1"
convert "$1"\
-sampling-factor 4:2:0 \
-strip \
-quality 85 \
-interlace Plane \
-gaussian-blur 0.05 \
-colorspace RGB \
"compressed-$1"