Skip to content

Instantly share code, notes, and snippets.

@twhite96
Created July 11, 2024 11:23
Show Gist options
  • Save twhite96/17be875aa2ab589bc925dabaf6c23390 to your computer and use it in GitHub Desktop.
Save twhite96/17be875aa2ab589bc925dabaf6c23390 to your computer and use it in GitHub Desktop.
convert all images to webp
function webpall() {
for file in *;
do cwebp -q 50 "$file" -o "${file%.*}.webp";
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment