From 3b6b124860ed89a4ce14078558d3970693fde379 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 25 Sep 2024 10:19:10 +0300 Subject: [PATCH] zip_image.sh --- meta/files/zip_image.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/files/zip_image.sh b/meta/files/zip_image.sh index 6624e599..7beb39a5 100755 --- a/meta/files/zip_image.sh +++ b/meta/files/zip_image.sh @@ -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 "$@"' _ {} \ No newline at end of file