Skip to main content

encode

Function encode 

Source
pub fn encode(img: &DynamicImage, format: Format) -> Result<Vec<u8>, String>
Expand description

Encodes img in format: PNG as decoded, JPG at quality 100 with any transparency laid on white.