initialize video and add title
This commit is contained in:
9
create_image.py
Normal file
9
create_image.py
Normal 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
|
||||
Reference in New Issue
Block a user