diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 11ca798672b..39d9db5eb73 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -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)