Skip to main content

write

Function write 

Source
pub fn write(image: &Image, metadata: &Metadata) -> Result<Vec<u8>, CliError>
Expand description

Encode an Image as an 8-bit RGBA PNG file, embedding metadata.

ยงErrors

CliError::Format if PNG encoding fails.