Skip to content

Commit

Permalink
Fix an issue resolving a palette with a single color.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Jan 10, 2022
1 parent 1b537a1 commit ffa3435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions large_image/tilesource/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ffa3435

Please sign in to comment.