ExifTool Forum

ExifTool => Newbies => Topic started by: dgood on December 09, 2016, 06:28:42 PM

Title: XMP sidecar description to Exif Raw
Post by: dgood on December 09, 2016, 06:28:42 PM
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!
Title: Re: XMP sidecar description to Exif Raw
Post by: StarGeek on December 09, 2016, 10:12:22 PM
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

Title: Re: XMP sidecar description to Exif Raw
Post by: dgood on December 10, 2016, 12:54:40 AM
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.
Title: Re: XMP sidecar description to Exif Raw
Post by: 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"
Title: Re: XMP sidecar description to Exif Raw
Post by: Hayo Baan on December 10, 2016, 04:07:28 AM
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.
Title: Re: XMP sidecar description to Exif Raw
Post by: dgood on December 10, 2016, 02:25:18 PM
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.