pub fn decode(bytes: &[u8], layout: PixelLayout) -> Result<Image, CliError>Expand description
Decode any still WebP file — lossless (VP8L) or lossy (VP8 ) — into an
Image with the requested output layout, dispatching on the container.
§Errors
CliError::Codec if the input is not a decodable still WebP image.