Browse Source

imageproc: Use Lanczos3 filter instead of Gaussian

index-subcmd
Vojtech Kral 5 years ago
parent
commit
9bd6a559c1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      components/imageproc/src/lib.rs

+ 1
- 1
components/imageproc/src/lib.rs View File

@@ -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 {


Loading…
Cancel
Save