From 08ea3ff21be4b4e4c88061b33f7a949c62281676 Mon Sep 17 00:00:00 2001 From: Llloooggg Date: Wed, 14 May 2025 02:47:26 +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=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B5=D0=B4=D1=83=D0=BF=D1=80?= =?UTF-8?q?=D0=B5=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F=D0=B8=20=D0=BE=20?= =?UTF-8?q?=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=BE=D0=BC=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image_compressor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image_compressor.py b/image_compressor.py index 523639e..6d3d3c1 100644 --- a/image_compressor.py +++ b/image_compressor.py @@ -12,6 +12,8 @@ from PIL import Image, ImageFile from pathlib import Path from concurrent.futures import ThreadPoolExecutor, as_completed +Image.MAX_IMAGE_PIXELS = None +warnings.simplefilter("ignore", Image.DecompressionBombWarning) ImageFile.LOAD_TRUNCATED_IMAGES = True warnings.filterwarnings("ignore", category=UserWarning, module="PIL")