mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-05 21:53:15 +03:00
Do not load at end of seek
This commit is contained in:
parent
988abb4288
commit
f5d9838e30
|
@ -411,6 +411,7 @@ class AniImageFile(ImageFile.ImageFile):
|
|||
|
||||
self.frame = 0
|
||||
self.seek(0)
|
||||
self.load()
|
||||
self.size = self.im.size
|
||||
|
||||
@property
|
||||
|
@ -438,7 +439,6 @@ class AniImageFile(ImageFile.ImageFile):
|
|||
raise EOFError(msg)
|
||||
|
||||
self.frame = frame
|
||||
self.load()
|
||||
|
||||
|
||||
Image.register_open(AniImageFile.format, AniImageFile, _accept)
|
||||
|
|
Loading…
Reference in New Issue
Block a user