diff --git a/linux/WEBP.sh b/linux/WEBP.sh new file mode 100644 index 0000000..bfc7e6c --- /dev/null +++ b/linux/WEBP.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# maak plaatjes kleiner +# apt install webp -y + +# Convert PNGs +find . -iname "*.png" -print0 | xargs -0 -n 1 -P 0 -I '{}' cwebp '{}' -short -q 90 -alpha_q 100 -m 6 -o '{}'.webp + +# Convert JPGs +find . \( -iname "*.jpg" -o -iname "*.jpeg" \) -print0 | xargs -0 -n 1 -P 0 -I '{}' cwebp -short -q 80 '{}' -o '{}'.webp +