pub fn read(bytes: &[u8]) -> Result<Image, CliError>Expand description
Decode a binary PPM (P6) or PAM (P7) image into an RGBA8 Image.
ยงErrors
CliError::Format if the header or body is malformed or uses an
unsupported feature (only 8-bit MAXVAL 255 is supported).