Restore negative seeks for TIFF.

This commit is contained in:
Antony Lee 2015-04-23 01:06:32 -07:00
parent 53a94cf757
commit 566b16020a

View File

@ -652,9 +652,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.