commit
c68c5808cb
After Width: | Height: | Size: 50 KiB |
@ -1,23 +1,24 @@
|
||||
boto3==1.26.142
|
||||
botocore==1.29.142
|
||||
gTTS==2.3.2
|
||||
boto3==1.34.127
|
||||
botocore==1.34.127
|
||||
gTTS==2.5.1
|
||||
moviepy==1.0.3
|
||||
playwright==1.34.0
|
||||
praw==7.7.0
|
||||
playwright==1.44.0
|
||||
praw==7.7.1
|
||||
prawcore~=2.3.0
|
||||
requests==2.31.0
|
||||
rich==13.4.1
|
||||
requests==2.32.3
|
||||
rich==13.7.1
|
||||
toml==0.10.2
|
||||
translators==5.7.6
|
||||
translators==5.9.2
|
||||
pyttsx3==2.90
|
||||
Pillow==9.5.0
|
||||
tomlkit==0.11.8
|
||||
Flask==2.3.3
|
||||
Pillow==10.3.0
|
||||
tomlkit==0.12.5
|
||||
Flask==3.0.3
|
||||
clean-text==0.6.0
|
||||
unidecode==1.3.6
|
||||
spacy==3.5.3
|
||||
torch==2.0.1
|
||||
transformers==4.29.2
|
||||
unidecode==1.3.8
|
||||
spacy==3.7.5
|
||||
torch==2.3.1
|
||||
transformers==4.41.2
|
||||
ffmpeg-python==0.2.0
|
||||
elevenlabs==0.2.17
|
||||
yt-dlp==2023.7.6
|
||||
elevenlabs==1.3.0
|
||||
yt-dlp==2024.5.27
|
||||
numpy==1.26.4
|
||||
|
@ -0,0 +1,13 @@
|
||||
from PIL.ImageFont import FreeTypeFont, ImageFont
|
||||
|
||||
|
||||
def getsize(font: ImageFont | FreeTypeFont, text: str):
|
||||
left, top, right, bottom = font.getbbox(text)
|
||||
width = right - left
|
||||
height = bottom - top
|
||||
return width, height
|
||||
|
||||
|
||||
def getheight(font: ImageFont | FreeTypeFont, text: str):
|
||||
_, height = getsize(font, text)
|
||||
return height
|
@ -1 +0,0 @@
|
||||
[]
|
Loading…
Reference in new issue