Skip to main content

encode_to_bytes

Function encode_to_bytes 

Source
pub fn encode_to_bytes(
    img: &DynamicImage,
    cfg: &ProcessConfig,
) -> Result<Vec<u8>, String>
Expand description

Encode image to raw bytes using the configured output format.