webpfy
This commit is contained in:
parent
e7ea6404cb
commit
62da89680a
1 changed files with 18 additions and 0 deletions
18
webpfy
Executable file
18
webpfy
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue