fix pad and dark poster mesh color in imageposter
This commit is contained in:
parent
7c134225ed
commit
54013ac9a9
@ -115,7 +115,7 @@ def drawPoster(events, bg, fg, month:int):
|
|||||||
for y in range(mesh_img.size[1]):
|
for y in range(mesh_img.size[1]):
|
||||||
for x in range(mesh_img.size[0]):
|
for x in range(mesh_img.size[0]):
|
||||||
if pixdata[x,y] != (0,0,0,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 = mesh_img.resize((W,H))
|
||||||
mesh_img.thumbnail((W,H), Image.Resampling.LANCZOS)
|
mesh_img.thumbnail((W,H), Image.Resampling.LANCZOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user