Hi sos_mobile_dev and welcome to the Python Discussion Board.
Code:
from graphics import *
bg=Image.new((240,240))
bg.text((30,30), u"text", font="title")
bg.save("c:\\a.jpg", quality=100)
Now, the explanation:
First, I created a new blank image of 240x240 pixels (instead, you could use a photo or something else, it make no difference).
Then I added the word "text" to the coordinates 30 and 30 of the image.
Lastly, I saved it to the path "c:\" with the filename "a.jpg", at top quality (quality can range from 0 to 100).
Example for a photo:
Code:
from graphics import *
photo=Image.open("c:\\myphoto.jpg")
photo.text((45,30), u"Text goes here", font="normal")
photo.save("c:\\mynewphoto.jpg")
For a list of fonts, see this article
Hope that helps