forked from Decentrala/website
fix pad and dark poster mesh color in imageposter
This commit is contained in:
parent
7c134225ed
commit
54013ac9a9
@ -81,7 +81,7 @@ def drawPoster(events, bg, fg, month:int):
|
||||
day = event["date"].day
|
||||
title = event["title"]
|
||||
pad = " " if event["date"].day < 10 else ""
|
||||
eventText = f"{date} {day}. {pad} {title}"
|
||||
eventText = f"{date} {day}. {pad}{title}"
|
||||
draw.text((165, height), eventText, font=fontIosevkaSmall, fill=fg)
|
||||
height += 200
|
||||
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user