[Image-SIG] Re: writing tEXt and zTXt chunks in png files

Fredrik Lundh fredrik at pythonware.com
Mon Oct 4 16:12:11 CEST 2004


Kent Tenney wrote:

> I am interested in writing some routines to
> support this thumbnail managing standard;
> http://triq.net/~jens/thumbnail-spec/
>
> Can I use PIL to write data to png files?

in 1.1.5b1, you can do:

    import PngImagePlugin
    info = PngImagePlugin.PngInfo()
    info.add_text("KEY", "VALUE") # adds tEXt chunk
    ...
    image.save("somefile.png", pnginfo=info)

you can get the latest beta here:

    http://effbot.org/downloads/#Imaging

</F> 





More information about the Image-SIG mailing list