18 lines
259 B
Bash
Executable file
18 lines
259 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
mkdir -p /tmp/webpfy/
|
|
|
|
doTheThing(){
|
|
magick \
|
|
-define webp:lossless=true \
|
|
-define webp:method=6 \
|
|
-define webp:image-hint=picture \
|
|
"$1" "$1".webp \
|
|
|| return
|
|
mv "$1" /tmp/webpfy/
|
|
}
|
|
|
|
for x in "$@" ; do
|
|
doTheThing "$x" &
|
|
done
|
|
|