Author Topic: Avoiding duplicate keywords?  (Read 1321 times)


  • Newbie
  • *
  • Posts: 1
Avoiding duplicate keywords?
« on: February 19, 2017, 07:43:27 AM »

I'm a real beginner with ExifTool and I have the following problem:

I want to add the keyword "People" to an image but only if the keyword does not exist.
I have tried the following command but if I use it multiple I get duplicates.

exiftool -P "-keywords+=People" "E:\Test\0012.TIF"

How can I realize this?

Thanks in advance


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16706
    • ExifTool Home Page
Re: Avoiding duplicate keywords?
« Reply #1 on: February 19, 2017, 08:53:27 AM »
Hi Christian,

FAQ 17 explains how to do this.

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