Skip to main content

convert_and_resize_height

Function convert_and_resize_height 

Source
pub fn convert_and_resize_height(
    image_data: &[u8],
    max_height: u32,
    quality: f32,
) -> Result<Vec<u8>, String>
Expand description

Konversi gambar mentah menjadi WebP dengan mengubah tinggi maksimal (resize height) menjaga aspek rasio.