ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: davidstirling on March 21, 2016, 08:52:59 AM

Title: Addiing multiple keywords from CSV file
Post by: davidstirling on March 21, 2016, 08:52:59 AM
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] .
Title: Re: Addiing multiple keywords from CSV file
Post by: Phil Harvey on March 21, 2016, 08:59:22 AM
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