From cae63ac7c8438b25616a72e731251186439e55fe Mon Sep 17 00:00:00 2001 From: Terry van Walen Date: Tue, 16 Apr 2024 14:14:52 +0200 Subject: [PATCH] Set max_image_pixels to none to allow any size images --- src/iiif/image_handling.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/iiif/image_handling.py b/src/iiif/image_handling.py index 56fd801..006605b 100644 --- a/src/iiif/image_handling.py +++ b/src/iiif/image_handling.py @@ -8,6 +8,9 @@ from iiif import utils +# Allow larger images too be processed. We can do this because we trust the source of the images +Image.MAX_IMAGE_PIXELS = None + log = logging.getLogger(__name__) MALFORMED_SCALING_PARAMETER = "The scaling parameter is malformed. It should either be 'full' or in the form of '100,50'."