font = ImageFont.truetype('/usr/share/fonts/dejavu/DejaVuSans.ttf', 25)
img = Image.new('RGBA', (200, 200), (120, 20, 20))
draw = ImageDraw.Draw(img)
draw.text((0, 0), 'This is a test', (255, 255, 0), font=font)
draw = ImageDraw.Draw(img)
img.save('a_test.png')
How can I write text over an image, and overlay another image on it, in Python?