Compare commits

..

No commits in common. "main" and "1.2.0" have entirely different histories.
main ... 1.2.0

2 changed files with 4 additions and 5 deletions

View file

@ -2,7 +2,8 @@ name: Upload release
on: on:
push: push:
branches: [main] tags:
- "*"
jobs: jobs:
build: build:
@ -17,6 +18,4 @@ jobs:
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
with: with:
token: ${{ secrets.TOKEN }} token: ${{ secrets.TOKEN }}
name: Latest version
tag_name: latest
files: horoscope.bat 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): def vertical_text(text: str, font: ImageFont.ImageFont | ImageFont.FreeTypeFont):
"""Image with vertical text""" """Image with vertical text"""
text_img = Image.new("RGBA", (135, 29), (255, 255, 255, 0)) text_img = Image.new("RGBA", (135, 24), (255, 255, 255, 0))
text_draw = ImageDraw.Draw(text_img) text_draw = ImageDraw.Draw(text_img)
text_draw.text((0, 0), f"{text:^15}", font=font, fill="black") 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 # Sign text
text_draw = vertical_text(sign, font_sign) text_draw = vertical_text(sign, font_sign)
image.paste(text_draw, (x - 12, y - 10), text_draw) image.paste(text_draw, (x - 10, y - 10), text_draw)
# Love prediction # Love prediction
love = Image.open(join(image_dir, "love.png")).convert("RGBA") love = Image.open(join(image_dir, "love.png")).convert("RGBA")