fix pad and dark poster mesh color in imageposter

This commit is contained in:
fram3d 2024-06-01 17:25:16 +02:00
parent 7c134225ed
commit 54013ac9a9
Signed by: fram3d
GPG Key ID: 938920E709EEA32A

View File

@ -115,7 +115,7 @@ def drawPoster(events, bg, fg, month:int):
for y in range(mesh_img.size[1]):
for x in range(mesh_img.size[0]):
if pixdata[x,y] != (0,0,0,0):
pixdata[x, y] = (0, 255, 0, 255)
pixdata[x, y] = (0, 100, 0, 255)
mesh_img = mesh_img.resize((W,H))
mesh_img.thumbnail((W,H), Image.Resampling.LANCZOS)