scale_to_size

Function scale_to_size 

Source
pub fn scale_to_size<'a>(
    img: DynamicImage,
    scale: &u32,
    crop: CropMethod,
) -> (DynamicImage, (u32, u32))
Expand description

Helper function to scale an image to a specific size with cropping options. Returns the new image and the effective dimensions.