Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
PARAMS=('-m 6 -q 80 -mt')
if [ $# -ne 0 ]; then
PARAMS=$@;
fi
cd $(pwd)
shopt -s nullglob nocaseglob extglob
for FILE in *.@(gif); do
gif2webp $PARAMS "$FILE" -o "${FILE%.*}".webp;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment