[Originally posted by gloubibou on 2009-08-19 20:02:16-07]I am trying to create an XMP sidecar by copying metadata from an image file.
These kinda work:
exiftool -a -m -v3 -u -u -o 2.xmp IL_090519_5061.CR2
exiftool -a -m -v3 -u -u -o 4.xmp "-all>xmp:all" IL_090519_5061.CR2
The catch: tags get shuffled around. Actual lens information (EF24-105mm f/4L IS USM) ends up in "MicrosoftPhoto:LensModel". I want it to be at "aux:Lens". Here I find only truncated information (24.0 - 105.0 mm).
So I re-read the documentation and figured that -tagsFromFile is what I need. Specifically it seems I need to specify tag groups in order for them to be preserved. Yet this fails:
exiftool -a -m -v3 -u -u -tagsFromFile IL_090519_5061.CR2 -all:all -m -unsafe 3.xmp
with "Error = Nothing to write"
What am I doing wrong?
When I leave out "-all:all" the XMP sidecar is successfully created with the same deficiencies I was trying to avoid.
Pierre