mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Restore negative seeks for TIFF.
This commit is contained in:
parent
1b80fe5507
commit
51f3560dc4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user