Re: Adding a comment to an image using PIL

2006-10-30 Thread Fredrik Lundh
Jeffrey Barish wrote: > I am trying to use PIL to add a comment to an image. I have never used PIL > before, but I discovered that it is possible to print an existing comment > with the following: > > im = PIL.Image.open('filename.jpg') > print im.app['COM'] > > I figured that I could write a c

Adding a comment to an image using PIL

2006-10-30 Thread Jeffrey Barish
I am trying to use PIL to add a comment to an image. I have never used PIL before, but I discovered that it is possible to print an existing comment with the following: im = PIL.Image.open('filename.jpg') print im.app['COM'] I figured that I could write a comment by reversing this procedure: im