From cdfdc614b56842da93d86ae76e971caba6d2f82b Mon Sep 17 00:00:00 2001 From: Rouven Himmelstein Date: Tue, 9 Aug 2022 15:58:40 +0200 Subject: [PATCH] feat: use Triangle instead of the slow Lanczos3 --- src/image_processor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image_processor.rs b/src/image_processor.rs index 8b8a3a7..a8bdd36 100644 --- a/src/image_processor.rs +++ b/src/image_processor.rs @@ -26,7 +26,7 @@ pub fn optimize_image( .unwrap(); // Resize the image to the needed display size - let resized = original_image.resize(display_width, display_height, FilterType::Lanczos3); + let resized = original_image.resize(display_width, display_height, FilterType::Triangle); // Rotate or flip the image if needed let fixed_orientation = if let Some(orientation) = image_orientation {