Change interpolation to bilinear (#895)
This commit is contained in:
parent
8ab4c19eea
commit
d39354a51f
|
@ -414,14 +414,14 @@ fn generate_cache_for_results(vector_with_path: Vec<(String, String, TreePath)>)
|
|||
|
||||
#[allow(clippy::never_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 => {
|
||||
println!("Failed to resize image {full_path}.");
|
||||
break;
|
||||
}
|
||||
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 => {
|
||||
println!("Failed to resize image {full_path}.");
|
||||
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 => {
|
||||
add_text_to_text_view(
|
||||
text_view_errors,
|
||||
|
|
Loading…
Reference in a new issue