From acbcc4474b449dd80eaf0f88bf917e2ead5fe28b Mon Sep 17 00:00:00 2001 From: Llloooggg Date: Wed, 14 May 2025 01:02:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D1=8B=20=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=BE=D0=BD=D0=BD=D0=B8=D1=85=20=D0=BB=D0=B8?= =?UTF-8?q?=D0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image_compressor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/image_compressor.py b/image_compressor.py index 5e1f362..4f4cbc7 100644 --- a/image_compressor.py +++ b/image_compressor.py @@ -90,6 +90,8 @@ def compress_with_external(path: str, ext: str) -> bool: str(path), ], check=True, + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, ) if os.path.getsize(tmp_path) <= target_size: break @@ -109,6 +111,8 @@ def compress_with_external(path: str, ext: str) -> bool: str(path), ], check=True, + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, ) if os.path.getsize(tmp_path) <= target_size or quality < 50: break @@ -135,6 +139,8 @@ def compress_with_external(path: str, ext: str) -> bool: "all", ], check=True, + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, ) if os.path.getsize(tmp_path) <= target_size or quality < 50: break