Skip to content

Instantly share code, notes, and snippets.

@sklar
Last active November 25, 2019 09:45
Show Gist options
  • Select an option

  • Save sklar/dab83b6928017e38ae84181ec7fdb740 to your computer and use it in GitHub Desktop.

Select an option

Save sklar/dab83b6928017e38ae84181ec7fdb740 to your computer and use it in GitHub Desktop.
Batch image conversion to WebP
#!/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