pub fn decode_image(data: &[u8]) -> Result<PremultipliedImage, Error>Expand description
Decodes data, choosing the format by its magic bytes. Data of no type
it recognizes fails with
ErrorKind::Unsupported, and an image that
doesn’t decode with ErrorKind::InvalidArgument.