ExifTool Forum

ExifTool => ExifTool GUI => Topic started by: po on January 25, 2021, 08:09:33 PM

Title: Batch insert keywords based on matching image name
Post by: po on January 25, 2021, 08:09:33 PM
I was looking at this thread Command to remove quotes from around keywords? (https://exiftool.org/forum/index.php?topic=11177.0), and I saw this command:
exiftool -tagsfromfile @ -Keywords "-subject<Keywords" -sep ", " -r DIR

I think a variant on that would be ideal for what I am hoping to achieve.

Background:
I have 1550 PSD images where I have been applying keywords over a period of time.

I recently noticed a problem with the PSD images.
I have an original (backup) set of PSDs.

I would like to copy all the keywords from the damaged set, and insert them into the original (backup) set of images.

I am hoping this can be done in a single operation.

Am I wishful thinking?
It seems like exiftool is ideal for this, but I am not familiar with it, and it has a stunning array of options to consider.

Lastly, Can I do it in the GUI tool?

Thanks for reading and any advice in advance.
:)
Title: Re: Batch insert keywords based on matching image name
Post by: StarGeek on January 25, 2021, 08:53:38 PM
The command would basically be something like this, assuming the files have the same name and are in different directories
exiftool -TagsFromFile /path/to/sourcefiles/%f.%e -Keywords /path/to/targetfiles/

This command would overwrite any Keywords in the target file.  If you need to combine keywords from both files, the it would be a bit more complex.  Also, you should double check where the keywords are located.  They might be in Keywords, Subject or HierarchicalSubject or even all three at once.

I don't know how much of that would be possible in the gui.
Title: Re: Batch insert keywords based on matching image name
Post by: po on January 28, 2021, 06:45:00 AM
Thank you very much for taking the time to reply.

The gui isn't essential
A merge isn't required. There were no keywords on the older/original files.

I'll be working with the owner of the images in the next day or two.
I'll let you know how it goes.

Again, many thanks, much appreciated.
Title: Re: Batch insert keywords based on matching image name
Post by: po on January 31, 2021, 02:14:53 AM
Tested on a small batch of 5 (funny story here, not relevant)
Worked like a charm!

Currently running over the full set of 1550 images, and its been a fantastically helpful tool.

Thanks for taking the time to reply. It's a problem that's been nagging at me for a few weeks.