Is there a way to tag multiple images with tags stored in a txt file?

Started by Jhon112, November 18, 2023, 07:15:23 PM

Previous topic - Next topic

Jhon112

Hello everyone!

I have around 1000 images with their respective tags in .txt files, created using a Ai caption generator and its like this:




I was successfully able to add the 01.txt tags to the 01.jpg image with the following command:
exiftool -m -overwrite_original "-IPTC:Keywords<=01.txt" -sep ", " 01.jpg
Instead of going through all of these 1000 images and tagging them one by one. How can I improve my CMD command so that I can add all tags at once...

Thank you for your kind assistance.

Phil Harvey

Try this:

exiftool -m -overwrite_original "-IPTC:Keywords<=%f.txt" -sep ", " -ext jpg DIR

- 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 ($).