Skip to main content

decode

Function decode 

Source
pub fn decode(data: &[u8]) -> Result<Raster, DecodeError>
Expand description

Decodes the first frame of a WebP file as Pillow does.

ยงErrors

When the data is not a WebP file, is truncated or malformed, or holds an image larger than Pillow accepts.