Skip to main content

encode_to_file

Function encode_to_file 

Source
pub fn encode_to_file(linear: &Rgb32FImage, path: &Path) -> Result<()>
Expand description

Encode a linear sRGB f32 image to a file, converting to sRGB gamma space.

Uses default options (JPEG quality 92, format inferred from extension). For more control, use encode_to_file_with_options.