Skip to content

Instantly share code, notes, and snippets.

@kevupton
Created April 5, 2019 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevupton/5c2a37166b13bc284b1cb4b5127e81da to your computer and use it in GitHub Desktop.
Save kevupton/5c2a37166b13bc284b1cb4b5127e81da to your computer and use it in GitHub Desktop.
WebP convert all images in current directory
#!/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