Подавление предупрежденияи о большом файле

This commit is contained in:
2025-05-14 02:47:26 +03:00
parent 500cf98994
commit 08ea3ff21b

View File

@@ -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")