From 486970692dad26236f60524698e0816c0027be30 Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Wed, 9 Nov 2022 17:51:49 -0500 Subject: [PATCH] [bug] Stop squimpshing the thumb'd nails --- src/thumbnailing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thumbnailing.rs b/src/thumbnailing.rs index 9714d76..cb9f4d6 100644 --- a/src/thumbnailing.rs +++ b/src/thumbnailing.rs @@ -17,7 +17,7 @@ pub fn thumbnail(bytes: &[u8]) -> ImageResult<(Option, u32, u32, Web let scaled = if new_dimm < 400 { cropped } else { - original_image.thumbnail_exact(400, 400) + cropped.thumbnail_exact(400, 400) }.into_rgba8(); let scale = scaled.width();