Skip to content

Instantly share code, notes, and snippets.

@jeancabral
Created August 3, 2020 20:39
Show Gist options
  • Save jeancabral/6d7768299d0d079b60849b98f8cffc2d to your computer and use it in GitHub Desktop.
Save jeancabral/6d7768299d0d079b60849b98f8cffc2d to your computer and use it in GitHub Desktop.
Batch process .png to .webp
for file in *.png ; do cwebp -q 50 "$file" -o "${file%.png}.webp"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment