mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
rewind before decode, consistent with other cases
This commit is contained in:
parent
88be36c27a
commit
597ca79b1b
|
@ -1175,6 +1175,7 @@ class TiffImageFile(ImageFile.ImageFile):
|
|||
# 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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user