More metadata in XMP sidecar

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
User avatar
michel038
Posts: 245
Joined: Tue Sep 27, 2016 8:18 am
Location: France

More metadata in XMP sidecar

Post by michel038 » Fri Nov 24, 2017 12:41 pm

It would be nice for xnviewmp to write more metadata in XMP sidecar file ...
I posted a first suggestion here : viewtopic.php?f=60&t=36312

Another user talked about metadata in XMP sidecar here : viewtopic.php?f=83&t=36616 (dates 16 - 20 Nov)
Pierre asked for a sample file, I can copy here a XMP sidecar file , written by Jphototagger :

(within Jphototagger, I wrote in each field two letters : xx and the name-of-the-field )
I think this file contains most of the classic metadata. (except lr:hierarchicalsubject , already used by xnviewmp)

Code: Select all

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.1.1">
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Description rdf:about=""
        xmlns:dc="http://purl.org/dc/elements/1.1/">
      <dc:subject>
        <rdf:Bag>
          <rdf:li>xx keyword1</rdf:li>
          <rdf:li>xx keyword2</rdf:li>
        </rdf:Bag>
      </dc:subject>
      <dc:title>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">xx Short description</rdf:li>
        </rdf:Alt>
      </dc:title>
      <dc:description>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">xx Description</rdf:li>
        </rdf:Alt>
      </dc:description>
      <dc:creator>xx Photographer Name</dc:creator>
      <dc:rights>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">xx Copyright</rdf:li>
        </rdf:Alt>
      </dc:rights>
    </rdf:Description>
    <rdf:Description rdf:about=""
        xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
      <photoshop:Headline>xx Image title</photoshop:Headline>
      <photoshop:City>xx City</photoshop:City>
      <photoshop:State>xx State</photoshop:State>
      <photoshop:Country>xx Country</photoshop:Country>
      <photoshop:Credit>xx Credits</photoshop:Credit>
      <photoshop:Source>xx Source</photoshop:Source>
      <photoshop:TransmissionReference>xx Transmission reference</photoshop:TransmissionReference>
      <photoshop:Instructions>xx Instructions</photoshop:Instructions>
      <photoshop:CaptionWriter>xx Author of this metadata</photoshop:CaptionWriter>
    </rdf:Description>
    <rdf:Description rdf:about=""
        xmlns:Iptc4xmpCore="http://iptc.org/••• SPAM •••/Iptc4xmpCore/1.0/xmlns/">
      <Iptc4xmpCore:Location>xx Location</Iptc4xmpCore:Location>
    </rdf:Description>
    <rdf:Description rdf:about=""
        xmlns:xap="http://ns.adobe.com/xap/1.0/">
      <xap:Rating>1</xap:Rating>
    </rdf:Description>
  </rdf:RDF>
</x:xmpmeta>

Last edited by michel038 on Mon Dec 18, 2017 7:43 am, edited 1 time in total.

User avatar
michel038
Posts: 245
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: More metadata in XMP sidecar

Post by michel038 » Sun Dec 17, 2017 10:37 pm

Workaround, available only for jpg pictures :
copy internal xmp metadata into xmp sidecar file

- Right-click on a picture, choose "Open with" ... "Configure programs"
- Click "Add", browse through your disk to : Xnviewmp\AddOn directory , select exiftool , "open"
- Double click the (empty) line in Name" column, and write here something like "exiftool sidecar"
-Double click in "parameter" column, and add : -o %d%f.xmp -xmp
click OK

Now, with right-click on a picture, when you use "exiftool sidecar", exiftool will read all xmp metadata, and write them in a xmp sidecar file.

Later you can copy or move this sidecar file into another folder where your raw files are stored ...

Post Reply