mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 20:33:24 +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.
|
# we have something else.
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print("don't have fileno or getvalue. just reading")
|
print("don't have fileno or getvalue. just reading")
|
||||||
|
self.fp.seek(0)
|
||||||
# UNDONE -- so much for that buffer size thing.
|
# UNDONE -- so much for that buffer size thing.
|
||||||
n, err = decoder.decode(self.fp.read())
|
n, err = decoder.decode(self.fp.read())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user