zip_image.sh

This commit is contained in:
Struchkov Mark 2024-09-25 10:19:10 +03:00
parent 67b18c2586
commit 3b6b124860
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -331,7 +331,10 @@ find "$IMAGE_DIR" -type f \
-iregex '.*\.\(jpg\|jpeg\)' -print0 | \
xargs -0 -P "$THREADS" -I {} bash -c 'process_jpeg "$@"' _ {}
# Конвертация в WebP
# Конвертация в WebP из исходных файлов
find "$IMAGE_DIR" -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \) \
-not -path "$COMP_DIR/*" \
-not -path "$WEBP_DIR/*" \
! -name "*-no-comp.*" \
-print0 | \
xargs -0 -P "$THREADS" -I {} bash -c 'process_webp "$@"' _ {}