2023-05-09 15:18:09

This commit is contained in:
henk
2023-05-09 15:18:09 +02:00
parent 726848452a
commit d9f79376ec
+10
View File
@@ -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