Merge pull request #6856 from radarhere/load_truncated_images

This commit is contained in:
Hugo van Kemenade 2023-01-05 12:27:15 +02:00 committed by GitHub
commit b6c7a837bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,10 @@ _plugins = [
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