Created
May 22, 2020 12:45
-
-
Save 007lva/4e52a2134c98ae2decefefde30baad2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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