hsl needs RGB images
This commit is contained in:
parent
3049c0185d
commit
478919c60a
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def getImageHeat(image_file):
|
||||||
return image_heat / 256
|
return image_heat / 256
|
||||||
|
|
||||||
def getImageHSL(image_file):
|
def getImageHSL(image_file):
|
||||||
image = Image.open(image_file).resize((1, 1), Image.ANTIALIAS)
|
image = Image.open(image_file).convert('RGB').resize((1, 1), Image.ANTIALIAS)
|
||||||
return getHSL(image.getpixel((0, 0)))
|
return getHSL(image.getpixel((0, 0)))
|
||||||
|
|
||||||
def getRGB(hsl):
|
def getRGB(hsl):
|
||||||
|
|
Loading…
Reference in a new issue