Function viuer::resize

source ·
pub fn resize(
    img: &DynamicImage,
    width: Option<u32>,
    height: Option<u32>
) -> DynamicImage
Expand description

Resize a image::DynamicImage so that it fits within optional width and height bounds. If none are provided, terminal size is used instead.