From d71b4bd986e0980346e65298ccbd080f28016635 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Thu, 17 Apr 2025 21:37:35 -0600 Subject: [PATCH] Make fg image smaller --- src/discord/motivate.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/discord/motivate.rs b/src/discord/motivate.rs index 0cd6878..9abde47 100644 --- a/src/discord/motivate.rs +++ b/src/discord/motivate.rs @@ -59,10 +59,14 @@ pub async fn create_greenscreen_image( (1.0, 1.0) }; - foreground_wand.scale_image(scale_width, scale_height, FilterType::Lanczos2)?; + foreground_wand.scale_image( + scale_width * 0.75, + scale_height * 0.75, + FilterType::Lanczos2, + )?; let pos_x = background_width / 2 - foreground_wand.get_image_width() / 2; - let pos_y = background_height / 2 - foreground_wand.get_image_height() / 2; + let pos_y = background_height - foreground_wand.get_image_height(); background_wand.compose_images( &foreground_wand, CompositeOperator::Atop,