import Image, ImageDraw, ImageFont im = Image.open(somefilename) draw = ImageDraw.Draw(im) font = ImageFont.load(somefont), or font = ImageFont.truetype(somefont, size) for truetype fonts draw.text(whatever the parameters are, check out the documentation for imagedraw, font=font, fill=somecolor) im.save(somefilename)
something like that. On Sat, Mar 29, 2008 at 10:15 PM, Tony Cappellini <[EMAIL PROTECTED]> wrote: > I want to write the filename of some images onto the image itself (as > text), so that when i view the image, I will see its filename. > > Is this the same as "watermarking" an image? If not, what is the name > terminology used to write text to a digital image? > > Whatever the name of this is, what classes/methods should I use in PIL > to do this? > > I will be working with jpgs, gifs, and bmps mostly. > > > thanks > _______________________________________________ > Image-SIG maillist - Image-SIG@python.org > http://mail.python.org/mailman/listinfo/image-sig >
_______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig