mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-09 23:04:45 +03:00
Restore negative seeks for TIFF.
This commit is contained in:
parent
53a94cf757
commit
566b16020a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user