Skip to content

Commit

Permalink
Fix: Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi authored Oct 17, 2023
1 parent 32c7786 commit 385a132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sub-image/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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,
)
Expand Down

0 comments on commit 385a132

Please sign in to comment.