Updated config
This commit is contained in:
parent
dea8315917
commit
6d7312c465
6 changed files with 17 additions and 4 deletions
|
@ -1,24 +0,0 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
if not set -q argv[1]
|
||||
echo "Usage: $argv[0] /path/to/search"
|
||||
exit 1
|
||||
end
|
||||
|
||||
for jpg in (find $argv[1] -type f -name '*.jpg')
|
||||
set avif (string replace -r '\.jpg$' '.avif' $jpg)
|
||||
|
||||
if test -f $avif
|
||||
echo Skip $avif
|
||||
continue
|
||||
end
|
||||
|
||||
echo Converting $jpg to $avif
|
||||
avifenc $jpg $avif
|
||||
|
||||
set json "$jpg.JSON"
|
||||
if test -f $json
|
||||
echo Renaming JSON $json to "$avif.JSON"
|
||||
mv $json "$avif.JSON"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue