pub fn encode_png( width: u32, height: u32, rgba: &[u8], ) -> Result<Vec<u8>, String>
Encodes RGBA8 pixels as PNG.