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 committed Jul 30, 2019
1 parent d516b78 commit e99e6f7
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 e99e6f7

Please sign in to comment.