Skip to content

Commit

Permalink
rewind before decode, consistent with other cases
Browse files Browse the repository at this point in the history
  • Loading branch information
chadawagner authored and radarhere committed Aug 12, 2019
1 parent 88be36c commit 597ca79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PIL/TiffImagePlugin.py
Expand Up @@ -1175,6 +1175,7 @@ def _load_libtiff(self):
# we have something else.
if DEBUG:
print("don't have fileno or getvalue. just reading")
self.fp.seek(0)
# UNDONE -- so much for that buffer size thing.
n, err = decoder.decode(self.fp.read())

Expand Down

0 comments on commit 597ca79

Please sign in to comment.