pub fn encode_png(rgba: &Array3<u8>) -> AgResult<Bytes>Expand description
Encode an (height, width, 4) RGBA array as a lossless PNG.
Non-contiguous arrays are copied to standard layout. A different channel count or an encoder failure returns an error.