From 54013ac9a9063f004c189045b7bde771b69ffd22 Mon Sep 17 00:00:00 2001 From: fram3d Date: Sat, 1 Jun 2024 17:25:16 +0200 Subject: [PATCH] fix pad and dark poster mesh color in imageposter --- image_poster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image_poster.py b/image_poster.py index 883261b4..31c4f0b4 100755 --- a/image_poster.py +++ b/image_poster.py @@ -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)