[Image-SIG] png.save() and tEXt chunks

Fredrik Lundh 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.

</F>

 On Mar 18, 2009 2:43 PM, "Kent Tenney" <ktenney at gmail.com> wrote:

Howdy,

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?

Thanks,
Kent
_______________________________________________
Image-SIG maillist  -  Image-SIG at python.org
http://mail.python.org/mailman/listinfo/image-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20090319/ec4fa21b/attachment.htm>


More information about the Image-SIG mailing list