setMetadata (imageEncoder : nodeset, metadata : nodeset) : void
The meta data of an encoder can be changed using this method. The meta data can be specified in the IPTC format or the XMPMETA format. In the following example, the syntax of the IPTC format is shown.
The IPTC format consists of the<iptc> root element and any number of<tag> sub-elements. The<tag> elements contain the parameters “section”, “id” and “index”. If the elements “section” and “index” are not set, then the value “2” for “section” and the value “0” for “index” are set. IPTC information is subdivided into different sections containing their own set of tags. The sections can be controlled with the parameter “section”, the tags with the parameter “id”. You will find an overview of the available ranges on the page http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html
You will find more detailled information on XMP at http://www.adobe.com/products/xmp/.
In the following example, the syntax of the method is represented:
In this example, the meta data is changed using IPTC data and then output as JPEG.