add again pillow v10

This commit is contained in:
yasirarism 2023-07-12 12:55:09 +07:00 committed by GitHub
parent dc37d8e78b
commit bf64b3b0ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View file

@ -32,8 +32,6 @@ async def draw_meme_text(image_path, text):
(left, top, right, bottom) = text_bbox (left, top, right, bottom) = text_bbox
u_width = abs(right - left) u_width = abs(right - left)
u_height = abs(top - bottom) u_height = abs(top - bottom)
text_size = (u_width, u_height)
# u_width, u_height = draw.textsize(u_text, font=m_font)
draw.text( draw.text(
xy=(((i_width - u_width) / 2) - 1, int((current_h / 640) * i_width)), xy=(((i_width - u_width) / 2) - 1, int((current_h / 640) * i_width)),
@ -81,8 +79,6 @@ async def draw_meme_text(image_path, text):
(left, top, right, bottom) = text_bbox (left, top, right, bottom) = text_bbox
u_width = abs(right - left) u_width = abs(right - left)
u_height = abs(top - bottom) u_height = abs(top - bottom)
text_size = (u_width, u_height)
# u_width, u_height = draw.textsize(l_text, font=m_font)
draw.text( draw.text(
xy=( xy=(

View file

@ -5,7 +5,7 @@ async_pymongo
pymongo pymongo
python-dotenv python-dotenv
requests requests
bs4 beautifulsoup4
aiohttp aiohttp
chevron chevron
gTTS gTTS
@ -18,7 +18,7 @@ psutil
python-dateutil python-dateutil
telegraph telegraph
hachoir hachoir
Pillow==9.5.0 Pillow==10.0.0
httpx[http2] httpx[http2]
git+https://github.com/yasirarism/vcsi git+https://github.com/yasirarism/vcsi
git+https://github.com/yasirarism/iytdl git+https://github.com/yasirarism/iytdl