pub fn encode_jpeg( data: &[u8], width: u32, height: u32, ) -> Result<Vec<u8>, RenderError>
Encode RGBA data to JPEG format