Created
March 1, 2022 16:57
-
-
Save johnrobertmcc/6d8bcebfa1c1692f265ff79365376a72 to your computer and use it in GitHub Desktop.
This file contains 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
function ctwp() { | |
extension=$1 | |
params=$2 # Add this | |
for i in *.$extension | |
do | |
file=$i | |
convert $file $params ${file%.*}.webp # Add params here | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment