XMP sidecar description to Exif Raw

Started by dgood, December 09, 2016, 06:28:42 PM

Previous topic - Next topic

dgood

Hi -
I successfully took the gps in the xmp sidecar and embedded them in the raw file by using
exiftool -tagsfromfile %d/%f.xmp -@ xmp2gps.args

I'd like to do the same thing with the description & keywords in the xmp sidecar and put them in the raw, but can't quite figure this one out  :o. Any thoughts?
Many thanks!

StarGeek

I don't use sidecar files so I'm not sure, but I think your command would be
exiftool -tagsfromfile %d/%f.xmp -Subject -Description TargetFileOrDir

"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

dgood

Close.
That command took the description and keywords from the xmp sidecar and put them into the xmp section of the raw file.
I would like to transfer them to the exif section of the raw file.

StarGeek

You could use "-ImageDescription<Description" for part of it, but Keywords doesn't have a corresponding tag in EXIF.  The closest would be XPKeywords, but that is a string, not a list type tag.  To do that, you'd have to use -sep ";" "-XPKeywords<Subject"
"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

Hayo Baan

Quote from: StarGeek on December 10, 2016, 01:10:56 AM
You could use "-ImageDescription<Description" for part of it, but Keywords doesn't have a corresponding tag in EXIF.  The closest would be XPKeywords, but that is a string, not a list type tag.  To do that, you'd have to use -sep ";" "-XPKeywords<Subject"
There is a Keywords tag in the IPTC, that's what I would use. Look at the metadata workgroup suggestions for details: https://exiftool.org/TagNames/MWG.html
I would not suggest XPKeywords since that is a Microsoft only tag, not used by anything else.
Hayo Baan – Photography
Web: www.hayobaan.nl

dgood

Quote from: Hayo Baan on December 10, 2016, 04:07:28 AM
I would not suggest XPKeywords since that is a Microsoft only tag, not used by anything else.

I agree. I'm just focusing on the -exif:imagedescription piece. I'm not going to worry about keywords.