From ffa3435651c64c7c8daaa13b33fcf07bbc3505c6 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Mon, 10 Jan 2022 10:34:39 -0500 Subject: [PATCH] Fix an issue resolving a palette with a single color. --- large_image/tilesource/utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/large_image/tilesource/utilities.py b/large_image/tilesource/utilities.py index e77ae9726..6a69a2a49 100644 --- a/large_image/tilesource/utilities.py +++ b/large_image/tilesource/utilities.py @@ -447,8 +447,8 @@ def getPaletteColors(value): palette = value if palette is None: try: - color = PIL.ImageColor.getcolor(str(value), 'RGBA') - palette = ['#000', color] + PIL.ImageColor.getcolor(str(value), 'RGBA') + palette = ['#000', str(value)] except ValueError: pass if palette is None: