On Sun, 13 Jun 2004, Glenn Randers-Pehrson wrote:
Do you know of tools for editing the metadata in a PNG file? I could modify the script to include a metadata insertion into the generated PNG files as part of the process.
pngcrush will do it. I wanted to resolve issues with the PNG group before writing it up.
For example,
pngcrush -text b "Copyright" \ "copyright 2000 svg-scribblers, Inc. Placed in Public Domain June 2004" \ -text b "Author" "J. F. Scribbler, www.svg-scribblers.com" \ in.png out.png
The "b" means place the resulting tEXt chunk before the IDAT chunks. Otherwise use "a" to put it after the IDAT.
Glenn
Thanks! I'll add support for that in the next release of the tool. Being able to include the metadata in the PNG's will be quite nice. :-)
Bryce