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"
authors = ["trivernis <trivernis@protonmail.com>"]
description = "An image thumbnail creation library"
version = "0.2.3"
version = "0.2.4"
edition = "2018"
repository = "https://github.com/Trivernis/thumbnailer"

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

Loading…
Cancel
Save