Created
April 5, 2019 04:44
-
-
Save kevupton/5c2a37166b13bc284b1cb4b5127e81da to your computer and use it in GitHub Desktop.
WebP convert all images in current directory
This file contains 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
#!/bin/bash | |
for file in * | |
do | |
echo "Converting: '$file'" | |
cwebp -q 80 "$file" -o "webp/$file.webp" > /dev/null 2>&1 | |
done | |
echo "Complete!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment