[Image-SIG] Re: writing tEXt and zTXt chunks in png files
Kent Tenney
kent at springfed.com
Mon Oct 4 23:56:17 CEST 2004
Wonderful! Initial tests indicate it works perfectly.
Thanks,
Kent
Fredrik Lundh wrote:
> 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>
>
>
>
> _______________________________________________
> Image-SIG maillist - Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
>
More information about the Image-SIG
mailing list