Skip to main content

decode_image

Function decode_image 

Source
pub fn decode_image(bytes: &[u8]) -> Result<RgbaImage, String>
Expand description

Decode the full image bytes to RGBA8. For animated GIFs this yields the first frame. Returns the decoder error string on failure.