Function image_utils::resize [] [src]

pub fn resize(src: &Path,
              width: u32,
              height: u32,
              dest: &Path,
              timeout: u32)
              -> Result<bool, Box<Error>>

Resizes image preserving its aspect ratio, fails if timeout exceeded

src - source image file

width - max width

height - max height

dest - destination image file

timeout - function timeout in seconds

Returns true on success