From 9bd6a559c15f0c1054b4602051ac30392fdd455b Mon Sep 17 00:00:00 2001 From: Vojtech Kral Date: Fri, 28 Dec 2018 00:56:52 +0100 Subject: [PATCH] imageproc: Use Lanczos3 filter instead of Gaussian --- components/imageproc/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/imageproc/src/lib.rs b/components/imageproc/src/lib.rs index a91e085d..fcfdf9e0 100644 --- a/components/imageproc/src/lib.rs +++ b/components/imageproc/src/lib.rs @@ -253,7 +253,7 @@ impl ImageOp { let mut img = image::open(&src_path)?; let (img_w, img_h) = img.dimensions(); - const RESIZE_FILTER: FilterType = FilterType::Gaussian; + const RESIZE_FILTER: FilterType = FilterType::Lanczos3; const RATIO_EPSILLION: f32 = 0.1; let img = match self.op {