Trait smartcrop::ResizableImage

source ·
pub trait ResizableImage<I: Image> {
    // Required method
    fn resize(&self, width: u32, height: u32) -> I;
}
Expand description

Trait for images to be resized by Smartcrop

Smartcrop downscales images to improve performance

Required Methods§

source

fn resize(&self, width: u32, height: u32) -> I

Resize the image to the specified dimensions

Implementors§

source§

impl<I, P> ResizableImage<ImageBuffer<P, Vec<u8>>> for I
where I: GenericImage<Pixel = P> + 'static, P: Pixel<Subpixel = u8> + 'static,