webp fix
This commit is contained in:
parent
b0ef71be5f
commit
1efa03da97
@ -75,7 +75,7 @@ def load_webp(file):
|
|||||||
img.load() # strange thing with Pillow and animated webp's is that the img.info dictionary attr doesn't update unless you call a function like this
|
img.load() # strange thing with Pillow and animated webp's is that the img.info dictionary attr doesn't update unless you call a function like this
|
||||||
frames.append([img.toqimage(), img.info["duration"]])
|
frames.append([img.toqimage(), img.info["duration"]])
|
||||||
|
|
||||||
return frames, img.info["loop"]
|
return frames
|
||||||
|
|
||||||
def get_apng_duration(file):
|
def get_apng_duration(file):
|
||||||
img = APNG.open(file)
|
img = APNG.open(file)
|
||||||
|
Loading…
Reference in New Issue
Block a user