9 lines
274 B
Plaintext
9 lines
274 B
Plaintext
|
#!/usr/bin/env nix-shell
|
||
|
#! nix-shell -p libwebp -p libavif -p pngcrush -i bash
|
||
|
|
||
|
filename="${1%.*}"
|
||
|
|
||
|
cwebp ${filename}.png -q 75 -o ${filename}.webp
|
||
|
avifenc ${filename}.png -o ${filename}.avif -s 0 -d 8 --min 48 --max 48 --minalpha 48 --maxalpha 48
|
||
|
pngcrush ${filename}.png
|