Last active
March 17, 2022 09:40
-
-
Save dipeshhkc/4e910eda481531235781c17b5e5c6ecf to your computer and use it in GitHub Desktop.
Bash Script to convert jpg image to webp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i=0 | |
for img in *.(JPG|jpg); | |
do | |
echo "compressing i=$i" | |
cwebp $img -q 25 -o compressed/$i.webp | |
i=$((i+1)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment