2021-10-20 16:43:26 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -p libwebp -p libavif -p pngcrush -i bash
|
|
|
|
|
|
|
|
filename="${1%.*}"
|
|
|
|
|
2022-03-22 01:21:25 +00:00
|
|
|
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
|