tags:

views:

63

answers:

2

I'm using PIL. I tried using :

img.info = {'Buyer':'Text','Copyright':'Text2'}

This is not working. Is there an alternate way to do it?

+3  A: 

I think you are looking for EXIF support which PIL is notoriously lacking.

Other people have made their own modules to support it: here is one that claims to write EXIF data properly which I found in a recent survey article of the topic of EXIF and Python.

msw
Most of that article talks about reading EXIF information. I was more interested in editing the EXIF information of the image. I found the pyexiv2 library located at http://tilloy.net/dev/pyexiv2/ to be the answer. I will update on how it works.Thanks
manny
+2  A: 

pyexiv2 library @ http://tilloy.net/dev/pyexiv2

manny