Export SVG-metadata when exporting to PNG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Inkscape |
Wishlist
|
Jon A. Cruz |
Bug Description
There is no clear standard for embedding metadata in PNG, but it would be nice to have at least a minor support of Exif.
Other softwares are working on it, for ex. : http://
Tom Davidson (tjd-mit) wrote : | #1 |
Changed in inkscape: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
nojhan (nojhan-gmail) wrote : | #2 |
The PNG specification (version 1.2) indicates :
« The iTXt, tEXt, and zTXt chunks are used for conveying textual information associated with the image. This specification refers to them generically as "text chunks".
Each of the text chunks contains as its first field a keyword that indicates the type of information represented by the text string. The following keywords are predefined and should be used where appropriate:
Title Short (one line) title or caption for image
Author Name of image's creator
Description Description of image (possibly long)
Copyright Copyright notice
Creation Time Time of original image creation
Software Software used to create the image
Disclaimer Legal disclaimer
Warning Warning of nature of content
Source Device used to create the image
Comment Miscellaneous comment; conversion from GIF comment »
Regarding inkscape, iTXt may be the good one to use.
More informations on the specs concerning chunks:
http://
While Exif support is nice, I'd rather suggest addressing XMP support instead
nojhan (nojhan-gmail) wrote : | #4 |
One can want Exif, XMP, IPTC or DC, RDF etc. The problem I see here is that none of them are standard in PNG. Thus, one cannot be sure that all softwares can read (and more important, save after edits) the metadata.
A first simple step would be to use the iTXt chunk, with standards keywords. Then, as the specs permits to add new keywords, it should be possible to support XMP or a subpart of Exif as well (as far as I comprehend the specs, but I'm not an expert).
More infos:
* Some details on the keywords: http://
* Some links about PNG and metadata: http://
Gustavo (ayala-gustavo) wrote : | #5 |
and the solution is...
nojhan (nojhan-gmail) wrote : | #6 |
The standard iTXT chunk is the right solution.
I have made a python script to export a PNG whit metadata, using inkscape and PIL :
http://
One may want to look at it, use it as a tool for inkscape or whatever you think of...
Changed in inkscape: | |
assignee: | nobody → jon-joncruz |
Changed in inkscape: | |
status: | Confirmed → In Progress |
Jon A. Cruz (jon-joncruz) wrote : | #7 |
Metadata is now written for "Title", "Author", "Description", "Creation Time", "Source" and "Copyright". The copyright content might need adjustment.
Fixed in revision 19919.
Changed in inkscape: | |
status: | In Progress → Fix Released |
Sounds good--any more details you can provide on a mapping from Inkscape metadata fields to, e.g. exif would probably help the chances of this getting implemented by one of the devs...