Function thumbnail_buffer_with_opts

Source
pub fn thumbnail_buffer_with_opts(
    buffer: &[u8],
    width: i32,
    thumbnail_buffer_options: &ThumbnailBufferOptions,
) -> Result<VipsImage>
Expand description

VipsThumbnailBuffer (thumbnail_buffer), generate thumbnail from buffer buffer: &[u8] -> Buffer to load from width: i32 -> Size to this width min: 1, max: 10000000, default: 1 thumbnail_buffer_options: &ThumbnailBufferOptions -> optional arguments returns VipsImage - Output image