Last active
November 25, 2019 09:45
-
-
Save sklar/dab83b6928017e38ae84181ec7fdb740 to your computer and use it in GitHub Desktop.
Batch image conversion 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
| #!/usr/bin/env bash | |
| for file in * | |
| do | |
| cwebp -q 80 "$file" -o "${file%%.*}.webp" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment