Skip to main content

encode_rgb8

Function encode_rgb8 

pub fn encode_rgb8(
    width: u32,
    height: u32,
    rgb: &[u8],
    quality: u8,
) -> Result<Vec<u8>, ImageError>
Expand description

Encode rgb (width * height * 3 bytes, row-major) as a JPEG of quality (1-100).