ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Glorious1 on September 25, 2024, 02:42:35 PM

Title: How to import multiple keywords from a CSV file
Post by: Glorious1 on September 25, 2024, 02:42:35 PM
From the docs, I can't quite figure out how to set up multiple list-type items in the csv, and what might be needed in the command-line to make it work.  I suspect there might be a "-sep" in the command, but I can't figure out the overall strategy.

My basic command is exiftool -csv='exiftool.csv' 'test/' -out 'exifslides/'
That is, take the source files from test/, add metadata from exiftool.csv, and output the new files to exifslides/
Title: Re: How to import multiple keywords from a CSV file
Post by: Phil Harvey on September 25, 2024, 02:52:36 PM
You can see the required format like this:

> exiftool a.jpg -subject=one -subject=two
    1 image files updated
> exiftool a.jpg -subject -csv
SourceFile,Subject
a.jpg,"one, two"

Then use -sep ", " as you mentioned to separate the items when importing.

- Phil
Title: Re: How to import multiple keywords from a CSV file
Post by: Glorious1 on September 26, 2024, 08:27:09 AM
I was able to get that to work. Thank you!  :)