Skip to content

Instantly share code, notes, and snippets.

@johnrobertmcc
Last active March 1, 2022 16:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save johnrobertmcc/9e9e3dd483ae07dee7938feff593d5a8 to your computer and use it in GitHub Desktop.
convert to webp
function ctwp() {
extension=$1
params=$2
for i in *.$extension
do
file=$i
convert $file $params ${file%.*}.webp
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment