ExifTool Forum

ExifTool => Newbies => Topic started by: rwagner on February 04, 2011, 06:48:17 AM

Title: Subject is duplicated to keywords
Post by: rwagner on February 04, 2011, 06:48:17 AM
Hello all,

I'm new to this forum and a newbie to exiftool, so please have patience with me even if I ask stupid questions.

I'm working on Mac with applescript and I use exiftool over the "do shell script" command.
When I'm setting the subject tag the content is also duplicated to the keywords. I don't find a way to avoid this.

The command is "exiftool -Subject='<theSubject>' -E <pathToFile>"

Can anyone help me with this issue?

Thanks in advance
Rudolf
Title: Re: Subject is duplicated to keywords
Post by: Phil Harvey on February 04, 2011, 07:13:39 AM
Hi Rudolf,

The problem is the software you use to read the metadata.  ExifTool only writes what you tell it to.

- Phil
Title: Re: Subject is duplicated to keywords
Post by: rwagner on February 04, 2011, 07:49:29 AM
Hi Phil,

Thanks for your reply.

Here are some more details: I'm writing to pdf files and I modify title, author, subject, keywords and instructions.
Everything works fine except for the fact that the content of subject is attached to the keywords.
I can see this by opening the file in Acrobat Professional and looking on the property window.

I hope this helps.

Rudolf
Title: Re: Subject is duplicated to keywords
Post by: Phil Harvey on February 04, 2011, 07:59:24 AM
Hi Rudolf,

Yes.  XMP-dc:Subject is used to store keywords, and is commonly called keywords when viewed in other applications.  (I have no idea why the XMP specification used this convention, but welcome to the inconsistent world of metadata.)

See FAQ number 3 (https://exiftool.org/faq.html#Q3) for suggestions about how to determine what you should be writing.

- Phil

Edit: Or maybe you are trying to write the native PDF tags and not XMP.  In this case, use PDF:Subject and PDF:Keywords, although I'm not sure what Acrobat will display if the XMP is also written and disagrees with the PDF information.  Maybe it is a good idea to write both.  In the full exiftool distribution you will find a pair of ".args" files which give the mappings between PDF and XMP tags.  You will notice that PDF:Subject maps into XMP-dc:Description, and PDF:Keywords maps into XMP-pdf:Keywords (not XMP-dc:Subject!).
Title: Re: Subject is duplicated to keywords
Post by: rwagner on February 04, 2011, 08:21:23 AM
Hi Phil,

Thanks a lot for your support. You made my day!

The hint to use 'PDF:<tag>' was the solution. Great!
I start loving exiftool!

Best wishes, Rudolf