Skip to content

Commit

Permalink
Use img.thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Apr 3, 2024
1 parent 47584af commit f4cc8dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/preview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ impl Previewer {
img.crop_imm(w, 0, img.height(), img.height())
};

let img = img.resize(EDGE, EDGE, FilterType::Triangle);
let img = img.thumbnail(EDGE, EDGE);
//let img = img.resize(EDGE, EDGE, FilterType::Triangle);
Ok(img)
}
}
Expand Down

0 comments on commit f4cc8dc

Please sign in to comment.