Skip to content

Instantly share code, notes, and snippets.

@sergejmueller
Last active June 12, 2021 09:36
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 sergejmueller/b8668c56b07d881a7ce9 to your computer and use it in GitHub Desktop.
Save sergejmueller/b8668c56b07d881a7ce9 to your computer and use it in GitHub Desktop.
Batch-Konvertierung der PNG- und JPEG-Dateien nach WebP
ls -1 *.jpg | xargs -n 1 bash -c '/usr/local/lib/libwebp-0.4.0/bin/cwebp "$0" -o "${0%.*}.webp" -quiet -q 90'
ls -1 *.png | xargs -n 1 bash -c '/usr/local/lib/libwebp-0.4.0/bin/cwebp "$0" -o "${0%.*}.webp" -quiet -q 0 -lossless'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment