imageproc: Use Lanczos3 filter instead of Gaussian
This commit is contained in:
parent
6e84eec32b
commit
9bd6a559c1
|
@ -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…
Reference in New Issue