Skip to content

Commit

Permalink
Load truncated TIFFs
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Aug 15, 2024
1 parent 1d77bfe commit abac69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ def _load_libtiff(self):
self.fp.close()
self.fp = None # might be shared

if err < 0:
if not ImageFile.LOAD_TRUNCATED_IMAGES and err < 0:
raise OSError(err)

return Image.Image.load(self)
Expand Down

0 comments on commit abac69e

Please sign in to comment.