diff --git a/src/PIL/__init__.py b/src/PIL/__init__.py index e65b155b2dc..4b76e893f34 100644 --- a/src/PIL/__init__.py +++ b/src/PIL/__init__.py @@ -75,6 +75,10 @@ class UnidentifiedImageError(OSError): """ Raised in :py:meth:`PIL.Image.open` if an image cannot be opened and identified. + + If a PNG image raises this error, setting :data:`.ImageFile.LOAD_TRUNCATED_IMAGES` + to true may allow the image to be opened after all. The setting will ignore missing + data and checksum failures. """ pass