Compare commits

..

2 commits
1.2.0 ... main

Author SHA1 Message Date
89af320a66
under text getting eaten
All checks were successful
Upload release / build (push) Successful in 3s
2024-10-07 23:11:46 +02:00
a61cc02c42
Release at each commit, release will now override the old one
All checks were successful
Upload release / build (push) Successful in 3s
2024-10-03 21:27:39 +02:00
2 changed files with 5 additions and 4 deletions

View file

@ -2,8 +2,7 @@ name: Upload release
on:
push:
tags:
- "*"
branches: [main]
jobs:
build:
@ -18,4 +17,6 @@ jobs:
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.TOKEN }}
name: Latest version
tag_name: latest
files: horoscope.bat

View file

@ -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")