[Image-SIG] Image processing terminology- - and using PIL

inhahe inhahe at gmail.com
Mon Mar 31 16:25:57 CEST 2008

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)

something like that.

On Sat, Mar 29, 2008 at 10:15 PM, Tony Cappellini <cappy2112 at gmail.com>

> 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 at python.org
> http://mail.python.org/mailman/listinfo/image-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20080331/633bab4c/attachment.htm 

More information about the Image-SIG mailing list