pub fn save_jpeg( tensor: &TensorDyn, path: impl AsRef<Path>, quality: u8, ) -> Result<()>
Save a TensorDyn image as a JPEG file.
TensorDyn
Only packed RGB and RGBA formats are supported.