docker-avif-webp/generate_all

4 lines
197 B
Plaintext
Raw Permalink Normal View History

2021-03-25 03:27:51 +01:00
#!/usr/bin/env sh
find ./ -type f -name '*.jpg' -exec sh -c 'cwebp $1 -o "${1%.jpg}.webp"' _ {} \;
find ./ -type f -name '*.png' -exec sh -c 'avifenc --min 10 --max 30 $1 "${1%.png}.avif"' _ {} \;