Heat expects RGB image
This commit is contained in:
parent
cb8ebbe74a
commit
2a04bb8a74
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def getHSL(rgb):
|
|||
return tuple(hsl)
|
||||
|
||||
def getImageHeat(image_file):
|
||||
image = Image.open(image_file).resize((16, 16), Image.ANTIALIAS)
|
||||
image = Image.open(image_file).convert('RGB').resize((16, 16), Image.ANTIALIAS)
|
||||
pixel = image.load()
|
||||
image_heat = 0
|
||||
for y in range(image.size[1]):
|
||||
|
|
Loading…
Reference in a new issue