Skip to content

WebPImagePlugin.py decodes webp in open()  #2483

Description

@christophegithubtts

What did you do?

Calling Image.open() on a webp file

What did you expect to happen?

The call should be quick

What actually happened?

open() for a webp image actually decodes the webp into rgb !
So open() for a webp image is much slower than open() for a png for instance

The implementation in WebPImagePlugin.py is not efficient at all.
open should call WebPGetInfo or WebPGetFeatures but not WebPDecode !

What versions of Pillow and Python are you using?

Latest pillow (4.1) and python 2.7

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