From 2c40204d672ea9af6c0191b461da6d65271d1e73 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 25 Sep 2024 14:31:06 +0300 Subject: [PATCH] zip_image.sh --- meta/files/zip_image.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/files/zip_image.sh b/meta/files/zip_image.sh index 7beb39a5..aa909956 100755 --- a/meta/files/zip_image.sh +++ b/meta/files/zip_image.sh @@ -320,6 +320,7 @@ export -f process_webp # Обработка PNG файлов find "$IMAGE_DIR" -type f \ -not -path "$COMP_DIR/*" \ + -not -path "$WEBP_DIR/*" \ ! -name "*-no-comp.*" \ -iname "*.png" -print0 | \ xargs -0 -P "$THREADS" -I {} bash -c 'process_png "$@"' _ {} @@ -327,6 +328,7 @@ xargs -0 -P "$THREADS" -I {} bash -c 'process_png "$@"' _ {} # Обработка JPEG файлов find "$IMAGE_DIR" -type f \ -not -path "$COMP_DIR/*" \ + -not -path "$WEBP_DIR/*" \ ! -name "*-no-comp.*" \ -iregex '.*\.\(jpg\|jpeg\)' -print0 | \ xargs -0 -P "$THREADS" -I {} bash -c 'process_jpeg "$@"' _ {}