ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Marsu42 on July 08, 2015, 07:11:01 AM

Title: How to integrate sidecar xmp?
Post by: Marsu42 on July 08, 2015, 07:11:01 AM
I've got an app that writes metadata out as a sidecar .xmp file, and I'd like to join these into the respective (in my case) .dng files next to them.  Is there a way to (batch)-write all the information from the sidecar? Sorry if I mis-rtfm'ed :-o ...

For reference, an example sidecar .xmp file looks like this:

<x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

  <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/">
    <xmp:Rating>3</xmp:Rating>
  </rdf:Description>

</rdf:RDF>
</x:xmpmeta>

Title: Re: How to batch-integrate sidecar xmp?
Post by: Marsu42 on July 08, 2015, 07:21:43 AM
Harrrgnn, there is a strong tendency to solve things myself just after posting 'em (to a forum where I cannot delete the topic) .. amazingly, exiftool treats a xmp file just like an image, so I can do "exiftool -overwrite_original -TagsFromFile image.xmp image.dng".
Title: Re: How to integrate sidecar xmp?
Post by: Phil Harvey on July 08, 2015, 07:22:56 AM
Great, glad you figured this out.

For much more information, see the Metadata Sidecar Files (https://exiftool.org/metafiles.html) page.

- Phil
Title: Re: How to integrate sidecar xmp?
Post by: Marsu42 on July 08, 2015, 07:24:47 AM
Quote from: Phil Harvey on July 08, 2015, 07:22:56 AM
Great, glad you figured this out.

The only question remains: Is there a *batch* way to do this and just call exiftool once, i.e. "exiftool -TagsFromFile (whateverthename).xmp (whateverthename).dng"? That's because exiftool has a large overhead when starting pearl, at least on my system. Thanks!
Title: Re: How to integrate sidecar xmp?
Post by: Phil Harvey on July 08, 2015, 07:27:09 AM
Yes.  Read the reference I gave.  See the "Batch processing" section.

- Phil
Title: Re: How to integrate sidecar xmp?
Post by: Marsu42 on July 08, 2015, 07:31:06 AM
Quote from: Phil Harvey on July 08, 2015, 07:27:09 AM
Yes.  Read the reference I gave.  See the "Batch processing" section.

Thanks again for pointing it out, and sorry for not properly rtfm'ing but it's always difficult to find just the correct spot for all the options :-)