diff --git a/src/lib.rs b/src/lib.rs index 576a296..949d2bf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -83,6 +83,7 @@ pub fn load_image(image_base64: String) -> String { Ok(image) => { match image::load_from_memory(image.as_ref()) { Ok(image) => { + let image = image.resize(128, 128, CatmullRom); state.image = Some(image); "OK" },