Hi,
I'm using exif tool in Lightroom (on windows 7) , with a plugin.
I would like to add location information (City, Province, Country) to the caption of my picture when I export it with Lightroom...
...and I have absolutely no idea on how to do that with exif tool ! :o ???
Would you be kind enough to give me some help about this ?
Many thanks in advance :D
There are 2 steps:
1) Figure out how ExifTool works.
For this, see the WRITING EXAMPLES (https://exiftool.org/exiftool_pod.html#writing_examples) section of the application documentation.
2) Figure out what tags you want to write.
FAQ number 2 (https://exiftool.org/faq.html#Q2) describes how to do this.
- Phil
Hi,
Thanks for the quick hints :D
My guess is that the parameters should look something like that (I want to keep the original caption and add location information to it):
-iptc:caption-abstract+=City -iptc:caption-abstract+=province-state -iptc:caption-abstract+=Country-PrimaryLocationName
Am I right ?
Very good, you're close. To copy tag values, use < instead of =. So the command would be:
exiftool "-iptc:caption-abstract+<City" "-iptc:caption-abstract+<province-state" "-iptc:caption-abstract+<Country-PrimaryLocationName" FILE
where FILE is one or more file and/or directory names. The quotes are necessary to protect the "<" from interpretation by the shell.
- Phil
(maybe) Because I'm using Export Meta plugin in Lightroom, I wasn't able to use the syntax you provided.
But I played a little bit around and after (a lot of) 'try and fail' attempt, I found something that was working for me :
"-caption-abstract<${caption-abstract} (${Sub-location}, ${city}, ${Province-state}, ${Country-PrimaryLocationName})" <DestImg>
It worked just fine !
Thanks for your help and for Exiftools :D ;)
This will store all items as a single string in the caption-abstract, which is typically the wrong way to do things. Read FAQ 17 (https://exiftool.org/faq.html#Q17) for more information.
- Phil