Function html5_picture::utils::imageops::calculate_height_preserve_aspect_ratio [−][src]
pub fn calculate_height_preserve_aspect_ratio(
image_file_name: &PathBuf,
width: u32
) -> Result<u32, String>
Expand description
Resizes the image preserving the aspect ratio. Returns the new height.