From 385a13281525bc2bc27f38acec822a8c40cd9c59 Mon Sep 17 00:00:00 2001 From: Nanashi Date: Wed, 18 Oct 2023 06:29:48 +0900 Subject: [PATCH] Fix: Fix type --- sub-image/src/routes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sub-image/src/routes.rs b/sub-image/src/routes.rs index b59a5f6..0be6e03 100644 --- a/sub-image/src/routes.rs +++ b/sub-image/src/routes.rs @@ -78,7 +78,7 @@ pub async fn convert_post( let img = image::imageops::crop(&mut rendered, 0, 145, 2048, 970).to_image(); image::imageops::resize( &img, - ((2048f64 / 970f64) * 720) as _, + ((2048f64 / 970f64) * 720f64) as _, 720, image::imageops::FilterType::Gaussian, ) @@ -88,7 +88,7 @@ pub async fn convert_post( let img = image::imageops::crop(&mut rendered, 0, 135, 2048, 897).to_image(); image::imageops::resize( &img, - ((2048f64 / 897f64) * 720) as _, + ((2048f64 / 897f64) * 720f64) as _, 720, image::imageops::FilterType::Gaussian, )