如何使用PIL设置图像属性?

时间:2010-05-14 02:23:49

标签: python python-imaging-library

我正在使用PIL。我尝试使用:

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

这不起作用。还有另一种方法吗?

2 个答案:

答案 0 :(得分:3)

我认为你正在寻找PIF众所周知缺乏的EXIF支持。

其他人已经制作了自己的模块来支持它:这是claims to write EXIF数据正确的模板,我在EXIF and Python主题的最新调查文章中找到了。

答案 1 :(得分:2)

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

相关问题