We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49e49d3 + fe82257 commit e4fa234Copy full SHA for e4fa234
2 files changed
src/PIL/ImageFile.py
@@ -150,10 +150,10 @@ def verify(self):
150
def load(self):
151
"""Load image data based on tile list"""
152
153
- pixel = Image.Image.load(self)
154
-
155
if self.tile is None:
156
raise OSError("cannot load this image")
+
+ pixel = Image.Image.load(self)
157
if not self.tile:
158
return pixel
159
src/PIL/TiffImagePlugin.py
@@ -1094,10 +1094,10 @@ def _load_libtiff(self):
1094
""" Overload method triggered when we detect a compressed tiff
1095
Calls out to libtiff """
1096
1097
1098
1099
1100
1101
1102
1103
0 commit comments