diff --git a/src/picframe/mat_image.py b/src/picframe/mat_image.py index 62bd138..0580945 100644 --- a/src/picframe/mat_image.py +++ b/src/picframe/mat_image.py @@ -305,7 +305,7 @@ def __scale_image(self, image, size=None): def __get_outer_mat_color(self, image): k = KmeansNp(k=3, max_iterations=10, size=100) colors = k.run(image) - return tuple(colors[0]) + return tuple(colors[0].tolist()) def __get_darker_shade(self, rgb_color, fractional_percent=0.5): return tuple(map(lambda c: int(c * fractional_percent), rgb_color))