hi
i have jpg images, one.jpg two.jpg etc.
i have txt files with keywords one.txt two.txt etc...
how to use exiftool to add this keywords from txt files into tags field in jpg images?
Is it a separate text file for each image? How are the keywords separated within the text file?
The tag you want to write to is the XMP:Subject tag, though IPTC:Keywords can also be used. See this post (https://exiftool.org/forum/index.php?topic=6591.msg32875#msg32875) for all the tags that Windows reads. The latter is an older standard and I suggest writing to the first on unless you need the IPTC one.
If each image has a separate text file, then you would use the -TAG<=DATFILE option (https://exiftool.org/exiftool_pod.html#TAG-DATFILE-or--TAG-FMT) to write the data from the file into the image. You would also have to include the -sep option (https://exiftool.org/exiftool_pod.html#sep-STR--separator) so you get separate keywords rather than a single long keyword.
The command for this would look like this
exiftool -sep "YourSeparator" -ext jpg "-Subject<=%d%f.txt" /path/to/files/
Anything else would require a lot more information on how your data is structured.
data in folder is like, yes each file own txt file:
shutterstock_12345678.jpg
shutterstock_12345678.txt (file with keywords. keywords separated with commas as long sentence)
this command work
exiftool -ext jpg "-Subject<=%d%f.txt" C:\c\c
is it possible to add same tags into eps files?
is it possible to not duplicate original file? (_original)
Quote from: foler on November 21, 2022, 03:51:06 AMis it possible to add same tags into eps files?
Yes.
Quoteis it possible to not duplicate original file? (_original)
Yes, by adding
-overwrite_original to the command. But if you are writing EPS files you should test to be sure your applications can read the edited files before deleting the originals.
- Phil