Skip to main content

new_fit_task

Function new_fit_task 

Source
pub fn new_fit_task(max_width: u32, max_height: u32) -> Vec<String>
Expand description

Resize to fit within max_width × max_height, preserving aspect ratio. No-op when the image already fits. Pass 0 to leave a dimension unconstrained.