1from PIL import Image, ImageFont, ImageDraw
2
3my_image = Image.open("image.jpg")
4
5title_font = ImageFont.truetype('font.ttf', 200)
6
7image_editable = ImageDraw.Draw(my_image)
8image_editable.text((15,15), "Text goes here", (237, 230, 211), font=title_font)
9
10my_image.save("image-text.jpg")