[Image-SIG] png.save() and tEXt chunks
fredrik at pythonware.com
Thu Mar 19 09:40:08 CET 2009
The current driver stores the tags in the info dictionary which is just a
collection of random stuff found by the format driver. Since that can
contain anything, including properties that depend on the image size or
contents, it's not preserved by internal operations, and not used by default
when saving an image.
The upcoming 1.1.7 release will improve things a bit; data from text chunks
are now mirrored in a separate dictionary, and I will add a text option to
the save method.
On Mar 18, 2009 2:43 PM, "Kent Tenney" <ktenney at gmail.com> wrote:
I work with png's which have tEXt chunks containing metadata.
PIL discards them upon open .. save.
Might it be desirable for core save() to check for extra chunks
and preserve them if found?
Image-SIG maillist - Image-SIG at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Image-SIG