Skip to main content

save_jpeg

Function save_jpeg 

Source
pub fn save_jpeg(
    tensor: &TensorDyn,
    path: impl AsRef<Path>,
    quality: u8,
) -> Result<()>
Expand description

Save a TensorDyn image as a JPEG file.

Only packed RGB and RGBA formats are supported.