Skip to content

KeyError: 'WEBP' when trying to write animated WebP file #2755

Description

@jd20

What did you do?

Attempt to save an image sequence to a *.webp file using save_all=True.

What did you expect to happen?

Write an animated WebP file. Looking at WebPImagePlugin.py, it's clear support hasn't been added for writing WebP image sequences yet, not sure if this is on the roadmap already or is terribly difficult to add, if it's pretty straightforward I might be able to contribute a PR for it.

What actually happened?

Receive an error: "KeyError: 'WEBP'"

What versions of Pillow and Python are you using?

Pillow 4.2.1, Python 3.6.0

Code to reproduce:

from PIL import Image
im = Image.open('image.png')
im.save('image.webp', save_all=True)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions