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

Fredrik Lundh fredrik at pythonware.com
Mon Mar 31 20:34:52 CEST 2008


Tony Cappellini 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?

watermarking is when you add a transparent text or drawing onto an 
image.  e.g. like this:

     http://en.wikipedia.org/wiki/Image:Visible_digital_watermarking.jpg

here's an quite powerful watermarking function for PIL:

     http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/362879

if you want to just add a label to the image, use the ImageDraw module 
to draw opaque text on top of the image.  you probably want to pick a 
suitable TrueType font (see ImageDraw.truetype) instead of the default font.

</F>



More information about the Image-SIG mailing list