This commit is contained in:
parent
a61cc02c42
commit
89af320a66
1 changed files with 2 additions and 2 deletions
4
main.py
4
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")
|
||||
|
|
Loading…
Reference in a new issue