Skip to content

Commit

Permalink
feat: change resize filter to Lanczos3 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Jul 22, 2024
1 parent c67c9c9 commit ec7cb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ pub fn get_source_color(source: &Source) -> Result<Argb, Report> {
ImageReader::extract_color(ImageReader::open(path)?.resize(
128,
128,
FilterType::Gaussian,
FilterType::Lanczos3,
))
}
Source::WebImage { url } => {
Expand All @@ -343,7 +343,7 @@ pub fn get_source_color(source: &Source) -> Result<Argb, Report> {
ImageReader::extract_color(ImageReader::read(&bytes)?.resize(
128,
128,
FilterType::Gaussian,
FilterType::Lanczos3,
))
}
Source::Color(color) => match color {
Expand Down

0 comments on commit ec7cb7a

Please sign in to comment.