Compare commits
No commits in common. "main" and "1.2.0" have entirely different histories.
2 changed files with 4 additions and 5 deletions
|
@ -2,7 +2,8 @@ name: Upload release
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -17,6 +18,4 @@ jobs:
|
|||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
token: ${{ secrets.TOKEN }}
|
||||
name: Latest version
|
||||
tag_name: latest
|
||||
files: horoscope.bat
|
||||
|
|
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, 29), (255, 255, 255, 0))
|
||||
text_img = Image.new("RGBA", (135, 24), (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 - 12, y - 10), text_draw)
|
||||
image.paste(text_draw, (x - 10, y - 10), text_draw)
|
||||
|
||||
# Love prediction
|
||||
love = Image.open(join(image_dir, "love.png")).convert("RGBA")
|
||||
|
|
Loading…
Reference in a new issue