loviuz-website/webp-images.sh

5 lines
189 B
Bash
Raw Normal View History

2022-07-24 22:24:22 +02:00
#!/bin/sh
find ./ -type f -name '*.jpg' -exec sh -c 'cwebp -q 80 "$1" -o "${1%.jpg}.webp"' _ {} \;
find ./ -type f -name '*.png' -exec sh -c 'cwebp -q 80 "$1" -o "${1%.png}.webp"' _ {} \;