Change downscaling filter to Lanczos

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent 35bef3ee0b
commit 001affa3fb
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -4,7 +4,7 @@ readme = "README.md"
license = "Apache-2.0" license = "Apache-2.0"
authors = ["trivernis <trivernis@protonmail.com>"] authors = ["trivernis <trivernis@protonmail.com>"]
description = "An image thumbnail creation library" description = "An image thumbnail creation library"
version = "0.2.3" version = "0.2.4"
edition = "2018" edition = "2018"
repository = "https://github.com/Trivernis/thumbnailer" repository = "https://github.com/Trivernis/thumbnailer"

@ -79,7 +79,7 @@ fn resize_images(image: DynamicImage, sizes: &[ThumbnailSize]) -> Vec<DynamicIma
.into_par_iter() .into_par_iter()
.map(|size| { .map(|size| {
let (width, height) = size.dimensions(); let (width, height) = size.dimensions();
image.resize(width, height, FilterType::Nearest) image.resize(width, height, FilterType::Lanczos3)
}) })
.collect() .collect()
} }

Loading…
Cancel
Save