Addiing multiple keywords from CSV file

Started by davidstirling, March 21, 2016, 08:52:59 AM

Previous topic - Next topic

davidstirling

I am trying to add two keywords to each image from one CSV file (one keyword each in two columns, each one headed "XMP-dc:Subject"). Is there a way to do this? Right now I am working around by running exiftool a second time using a CSV file with only the second keyword and I type
exiftool -csv+=[file] .

Phil Harvey

You can't have two columns in the CSV with the same heading (the second one will override the first).

The way to do this would be to have a single column containing all keywords, separated however you want (for example, with a comma):

SourceFile,XMP-dc:Subject
test.jpg,"one,two"


then use this command: exiftool -csv+=test.csv -sep "," FILE

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