Restore negative seeks for TIFF.

This commit is contained in:
Antony Lee 2015-04-23 01:06:32 -07:00 committed by Andrew Murray
parent 1b80fe5507
commit 51f3560dc4

View File

@ -673,9 +673,7 @@ class TiffImageFile(ImageFile.ImageFile):
def seek(self, frame):
"Select a given frame as current image"
if frame < 0:
raise ValueError("invalid seek")
self._seek(frame)
self._seek(max(frame, 0)) # Questionable backwards compatibility.
# Create a new core image object on second and
# subsequent frames in the image. Image may be
# different size/mode.