From 9db4a849832cea2846f7850db1a699b54f755e1f Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 20 Jul 2020 21:16:33 +1000 Subject: [PATCH] Documented MAX_IMAGE_PIXELS --- docs/conf.py | 1 - docs/reference/Image.rst | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 2d80e3170..5b42bba11 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -118,7 +118,6 @@ nitpick_ignore = [ ("py:attr", "PIL.Image.Image.tag"), ("py:attr", "PIL.Image.Image.tag_v2"), ("py:attr", "PIL.Image.Image.tile"), - ("py:data", "PIL.Image.MAX_IMAGE_PIXELS"), ("py:attr", "PIL.TiffImagePlugin.ImageFileDirectory_v2.tagtype"), ] diff --git a/docs/reference/Image.rst b/docs/reference/Image.rst index f24d382b8..da14fb343 100644 --- a/docs/reference/Image.rst +++ b/docs/reference/Image.rst @@ -374,6 +374,10 @@ Constants --------- .. data:: NONE +.. data:: MAX_IMAGE_PIXELS + + Set to 89,478,485, approximately 0.25gb for a 24 bit (3 bpp) image. + See :py:meth:`~PIL.Image.open` for more information about how this is used. Transpose methods ^^^^^^^^^^^^^^^^^