mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 02:46:18 +03:00
If GIF has already seeked past first frame, it is animated
This commit is contained in:
parent
54be93c8b0
commit
73cf28cc94
|
@ -110,7 +110,9 @@ class GifImageFile(ImageFile.ImageFile):
|
|||
self._is_animated = self._n_frames != 1
|
||||
else:
|
||||
current = self.tell()
|
||||
|
||||
if current:
|
||||
self._is_animated = True
|
||||
else:
|
||||
try:
|
||||
self.seek(1)
|
||||
self._is_animated = True
|
||||
|
|
Loading…
Reference in New Issue
Block a user