mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-03 12:43:05 +03:00
Initialise __logical_frame = 0 so tell() == 0 when unpickled
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
913e79f010
commit
f589f8689f
|
@ -39,7 +39,7 @@ class WebPImageFile(ImageFile.ImageFile):
|
||||||
format = "WEBP"
|
format = "WEBP"
|
||||||
format_description = "WebP image"
|
format_description = "WebP image"
|
||||||
__loaded = -1
|
__loaded = -1
|
||||||
__logical_frame = -1
|
__logical_frame = 0
|
||||||
|
|
||||||
def _open(self):
|
def _open(self):
|
||||||
if not _webp.HAVE_WEBPANIM:
|
if not _webp.HAVE_WEBPANIM:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user