Xmp tag in raw file not writing into xmp sidecar

Started by tommyzebman, January 10, 2020, 12:25:42 PM

Previous topic - Next topic

tommyzebman

I put several tags in my nef file including this:  "-XMP-aux:Lens<Composite:LensID".

  Looks good in output .txt file. 

---- XMP-aux ----
Lens                            : AF-S Zoom-Nikkor 24-70mm f/2.8G ED
---- XMP-dc ----
Creator                         : Thomas

Used this then to make xmp sidecar file:  exiftool -progress -ext NEF  -tagsfromfile @ -srcfile %d%f.XMP "DIR"    BUT, that lens tag does not appear.  All other tags are there I believe.

<rdf:Description rdf:about=''
  xmlns:aux='http://ns.adobe.com/exif/1.0/aux/'>
  <aux:FlashCompensation>0/1</aux:FlashCompensation>
  <aux:ImageNumber>4540</aux:ImageNumber>
  <aux:Lens>24-70mm f/2.8</aux:Lens>
</rdf:Description>

Seems like it should be near this area in xmp file.


Phil Harvey

Hi Tommy,

This is a FAQ 3 problem.  There is a Nikon:Lens tag that is hiding the XMP:Lens you are looking to copy.  Either limit the groups that are copied to the XMP, or copy that tag specifically.

exiftool -progress -ext NEF  -tagsfromfile @ -xmp:all -srcfile %d%f.XMP "DIR"

or

exiftool -progress -ext NEF  -tagsfromfile @ -all -xmp:lens -srcfile %d%f.XMP "DIR"

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tommyzebman

Do not understand it right now completely, but thank you it fixed it.

StarGeek

Run this command
exiftool -g1 -a -s -Lens FILE

The output should be something like
---- XMP-aux ----
Lens                            : AF-S Zoom-Nikkor 24-70mm f/2.8G ED
---- Nikon ----
Lens                            : 24-70mm f/2.8


The tag Lens appears in two different places and the wrong one was getting copied to the sidecar file.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype