Skip to content

Commit

Permalink
Merge pull request #754 from girder/fix-palette-resolution
Browse files Browse the repository at this point in the history
Fix an issue resolving a palette with a single color.
  • Loading branch information
manthey authored Jan 10, 2022
2 parents 1b537a1 + ffa3435 commit 7ee67f8
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 7ee67f8

Please sign in to comment.