OP-3723 - remove PIL limit

High resolution could trigger " could be decompression bomb DOS attack".
This commit is contained in:
Petr Kalis 2022-08-17 16:01:31 +02:00
parent c9f3340f3c
commit db6f46895b

View file

@ -144,6 +144,7 @@ class ExtractReview(openpype.api.Extractor):
used as a source for thumbnail or review mov.
"""
max_ffmpeg_size = 16384
Image.MAX_IMAGE_PIXELS = None
first_url = os.path.join(staging_dir, processed_img_names[0])
with Image.open(first_url) as im:
width, height = im.size