initialize video and add title

This commit is contained in:
2024-04-06 19:20:17 -07:00
parent 1357f9f081
commit 9507f92b27
11 changed files with 52 additions and 0 deletions

9
create_image.py Normal file
View File

@@ -0,0 +1,9 @@
from PIL import Image, ImageDraw, ImageFont
def reddit(img, title):
i = Image.open(img)
d = ImageDraw.Draw(i)
d.text((28, 36), title, fill=(255, 0, 0))
# fnt = ImageFont.truetype('Pillow/Tests/fonts/FreeMono.ttf', 40)
i.save(fp=i+'.png')
return True