Skip to content

Commit

Permalink
Fix pillow 10 api (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
f0re1gnKey authored Nov 15, 2023
1 parent f1003dd commit 65f882c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffxivbot/handlers/QQUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,10 @@ def text2img(text):
last_height = 0
img_width = 0
border = 10
_, height = font.getsize(text)
_, _, _, height = font.getbbox(text)
for line in lines:
# print("{}:\t{}".format(img_height + border, line))
width, _ = font.getsize(line)
_, _, width, _ = font.getbbox(line)
img_width = max(img_width, width)
img_height += height
img = PILImage.new(
Expand Down

0 comments on commit 65f882c

Please sign in to comment.