Skip to main content

to_srgb

Function to_srgb 

Source
pub fn to_srgb(img: DynamicImage, icc: &[u8]) -> DynamicImage
Expand description

img in sRGB through icc. A profile that can’t be read, doesn’t match the picture’s colours or changes nothing leaves img as it is.