Skip to content

Instantly share code, notes, and snippets.

@n3dst4
Last active February 6, 2021 11:57
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 n3dst4/4d6c64d9d38430d6cfc7815d652f3468 to your computer and use it in GitHub Desktop.
Save n3dst4/4d6c64d9d38430d6cfc7815d652f3468 to your computer and use it in GitHub Desktop.
Bulk webp conversion

Howto: bulk convert to .webp

Install webp

sudo apt update
sudo apt install webp

To convert a load of .pngs:

mkdir _orig
for x in *.png; do cwebp "$x" -o "$(basename ${x} .png).webp"; mv "$x" _orig; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment