Change interpolation to bilinear
This commit is contained in:
parent
8ab4c19eea
commit
aeb9eb8e08
2 changed files with 3 additions and 3 deletions
|
@ -414,14 +414,14 @@ fn generate_cache_for_results(vector_with_path: Vec<(String, String, TreePath)>)
|
||||||
|
|
||||||
#[allow(clippy::never_loop)]
|
#[allow(clippy::never_loop)]
|
||||||
loop {
|
loop {
|
||||||
let pixbuf_big = match resize_pixbuf_dimension(pixbuf, (BIG_PREVIEW_SIZE, BIG_PREVIEW_SIZE), InterpType::Nearest) {
|
let pixbuf_big = match resize_pixbuf_dimension(pixbuf, (BIG_PREVIEW_SIZE, BIG_PREVIEW_SIZE), InterpType::Bilinear) {
|
||||||
None => {
|
None => {
|
||||||
println!("Failed to resize image {full_path}.");
|
println!("Failed to resize image {full_path}.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Some(pixbuf) => pixbuf,
|
Some(pixbuf) => pixbuf,
|
||||||
};
|
};
|
||||||
let pixbuf_small = match resize_pixbuf_dimension(pixbuf_big.clone(), (SMALL_PREVIEW_SIZE, SMALL_PREVIEW_SIZE), InterpType::Nearest) {
|
let pixbuf_small = match resize_pixbuf_dimension(pixbuf_big.clone(), (SMALL_PREVIEW_SIZE, SMALL_PREVIEW_SIZE), InterpType::Bilinear) {
|
||||||
None => {
|
None => {
|
||||||
println!("Failed to resize image {full_path}.");
|
println!("Failed to resize image {full_path}.");
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -669,7 +669,7 @@ fn show_preview(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pixbuf = match resize_pixbuf_dimension(pixbuf, (800, 800), InterpType::Nearest) {
|
pixbuf = match resize_pixbuf_dimension(pixbuf, (800, 800), InterpType::Bilinear) {
|
||||||
None => {
|
None => {
|
||||||
add_text_to_text_view(
|
add_text_to_text_view(
|
||||||
text_view_errors,
|
text_view_errors,
|
||||||
|
|
Loading…
Reference in a new issue