From b2dbee57ca0f481edc1b7109fe82814fb689fd84 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 18 Sep 2024 20:33:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=20=D1=81=D0=B6=D0=B0=D1=82=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meta/files/zip_image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/files/zip_image.sh b/meta/files/zip_image.sh index 4d62fcd4..087d670c 100644 --- a/meta/files/zip_image.sh +++ b/meta/files/zip_image.sh @@ -150,7 +150,7 @@ process_jpeg() { local original_size original_size=$(get_file_size "$output_file") - if ! jpegoptim --all-progressive "$output_file"; then + if ! jpegoptim --max=95 --all-progressive "$output_file"; then log_error "Ошибка при сжатии $output_file с помощью jpegoptim" return 1 fi @@ -204,7 +204,7 @@ process_webp() { local original_size original_size=$(get_file_size "$input_file") - if ! cwebp -mt -af -quiet -m 6 -q 75 -pass 10 "$input_file" -o "$output_file"; then + if ! cwebp -mt -af -quiet -m 6 -q 95 -pass 10 "$input_file" -o "$output_file"; then log_error "Ошибка при конвертации $input_file в WebP" return 1 fi