[Image-SIG] Fix for writing tEXT chunks in PNG images

Nate Vack njvack at wisc.edu
Tue Nov 25 22:20:49 CET 2008


Hi all,

I'm writing PNG images and looking to save analysis info in tEXT
metadata. I found Nick's most excellent workaround at
http://blog.modp.com/2007/08/python-pil-and-png-metadata-take-2.html
and built off it so you can just use the standard save() method on
images. It's right on the verge of being a monkey patch ;-)

Here's a post and the code:

http://freshforever.net/2008/11/writing-png-metadata-in-pil-using-imagesave/

And, if it's easier, a pastie:

http://pastie.org/323865

Alway
-Nate


More information about the Image-SIG mailing list