You've already forked ImageCompressor
mirror of
https://github.com/Llloooggg/ImageCompressor.git
synced 2026-03-05 19:16:23 +03:00
Подавление предупрежденияи о большом файле
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user