From 89af320a66ee28794db24ac15d03a286a5737220 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 7 Oct 2024 23:11:46 +0200 Subject: [PATCH] under text getting eaten --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 2d007fe..05ac3bb 100644 --- a/main.py +++ b/main.py @@ -60,7 +60,7 @@ def get_sign_image(image: str): def vertical_text(text: str, font: ImageFont.ImageFont | ImageFont.FreeTypeFont): """Image with vertical text""" - text_img = Image.new("RGBA", (135, 24), (255, 255, 255, 0)) + text_img = Image.new("RGBA", (135, 29), (255, 255, 255, 0)) text_draw = ImageDraw.Draw(text_img) text_draw.text((0, 0), f"{text:^15}", font=font, fill="black") @@ -87,7 +87,7 @@ def create_horoscope_image(horoscope: dict[str, dict[str, str]]): # Sign text text_draw = vertical_text(sign, font_sign) - image.paste(text_draw, (x - 10, y - 10), text_draw) + image.paste(text_draw, (x - 12, y - 10), text_draw) # Love prediction love = Image.open(join(image_dir, "love.png")).convert("RGBA")