mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
LOAD_TRUNCATED_IMAGES may allow PNG images to open
This commit is contained in:
parent
f5c47ebe12
commit
ea9a1b84aa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user