add support for thumbnail image resizing

This commit is contained in:
walter
2021-10-08 13:45:26 -04:00
parent cd50e1c578
commit 734a545847

View File

@ -691,6 +691,15 @@ impl MagickWand {
}
}
/// Resize the image to the specified width and height, using the
/// 'thumbnail' optimizations which remove a lot of image meta-data with the goal
/// of producing small low cost images suited for display on the web.
pub fn thumbnail_image(&self, width: usize, height: usize) {
unsafe {
bindings::MagickThumbnailImage(self.wand, width as size_t, height as size_t);
}
}
/// Extract a region of the image. The width and height is used as the size
/// of the region. X and Y is the offset.
pub fn crop_image(