Skip to content

Commit

Permalink
feat: use Triangle instead of the slow Lanczos3
Browse files Browse the repository at this point in the history
  • Loading branch information
RouHim committed Aug 9, 2022
1 parent 05b94b6 commit cdfdc61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn optimize_image(
.unwrap();

// Resize the image to the needed display size
let resized = original_image.resize(display_width, display_height, FilterType::Lanczos3);
let resized = original_image.resize(display_width, display_height, FilterType::Triangle);

// Rotate or flip the image if needed
let fixed_orientation = if let Some(orientation) = image_orientation {
Expand Down

0 comments on commit cdfdc61

Please sign in to comment.