From 0bafb1e5d343070bc66d00e0bbc28dda6e66cbce Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Sun, 25 Feb 2024 18:06:46 +0100 Subject: [PATCH] image/backgroundColor: Scale down to to 201px An odd number seems to help with catching some details. Closes #328 --- src/widgets/image/background_color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/image/background_color.rs b/src/widgets/image/background_color.rs index 725d666..1951778 100644 --- a/src/widgets/image/background_color.rs +++ b/src/widgets/image/background_color.rs @@ -71,7 +71,7 @@ impl imp::LpImage { let max_size = i32::max(width, height); // Only use max 200px size scaled image for analysis - let zoom = f64::min(1., 200. / max_size as f64); + let zoom = f64::min(1., 201. / max_size as f64); let snapshot = gtk::Snapshot::new(); let render_options = tiling::RenderOptions {