Skip to content

Commit

Permalink
Set max_image_pixels to none to allow any size images
Browse files Browse the repository at this point in the history
  • Loading branch information
TvanWalen committed Apr 16, 2024
1 parent ef3dc37 commit cae63ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/iiif/image_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'."
Expand Down

0 comments on commit cae63ac

Please sign in to comment.