rewind before decode, consistent with other cases

This commit is contained in:
chadawagner 2019-07-30 11:28:44 -07:00 committed by Andrew Murray
parent 88be36c27a
commit 597ca79b1b

View File

@ -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())