mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-06 20:04:51 +00:00
add again pillow v10
This commit is contained in:
parent
dc37d8e78b
commit
bf64b3b0ca
2 changed files with 3 additions and 7 deletions
|
|
@ -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=(
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue