Creating text on images

Roland Heiber roland.heiber at
Thu Jan 13 13:41:12 CET 2005

morphex wrote:
> Hi all,
> I'm trying to create a script that will superimpose text on an image.
> I didn't find any great examples out there on how this can be done (I
> presume using PIL is necessary), do you know of any examples?
> Thanks,
> Morten


something like this?

from PIL import Image, ImageFont, ImageDraw
import sys

im =
idraw = ImageDraw.Draw(im)
idraw.text((1,1),"Hello", fill=128), IMAGE_TYPE)

HtH, Roland

More information about the Python-list mailing list