Increase sample rate to get a more faithful set of colors

This commit is contained in:
Claudio Ortolina
2025-06-07 19:43:54 +01:00
parent 7efbbe0683
commit 8a2fda5f73
+1 -1
View File
@@ -49,7 +49,7 @@ defmodule MusicLibrary.Records.DominantColors do
height = Image.height(image)
# Sample every nth pixel to get a good distribution
sample_step = max(1, div(min(width, height), 20))
sample_step = max(1, div(min(width, height), 10))
pixels =
for y <- 0..(height - 1)//sample_step,