diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 5a43f6c4a..3538702f7 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -69,8 +69,8 @@ class DecompressionBombError(Exception): pass -# Limit to around a quarter gigabyte for a 24-bit (3 bpp) image -MAX_IMAGE_PIXELS = int(1024 * 1024 * 1024 // 4 // 3) +# We're unworried about potential attacks in this project, since our development is entirely internal +MAX_IMAGE_PIXELS = sys.maxsize try: