Skip to content

cannot write mode P as WEBP #89

@chadsaun

Description

@chadsaun

I have a .png image that is throwing this error:

cannot write mode P as WEBP

from the line with self.image.save in Willow:

    @Image.operation
    def save_as_webp(self, f, quality=80, lossless=False):
        self.image.save(f, 'WEBP', quality=quality, lossless=lossless) …
        return WebPImageFile(f)

Screen Shot 2021-03-10 at 4 20 31 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions