Adding location information to caption in Lightroom

Started by Cmely, September 09, 2013, 05:39:26 AM

Previous topic - Next topic

Cmely

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


Phil Harvey

There are 2 steps:

1) Figure out how ExifTool works.

For this, see the WRITING EXAMPLES section of the application documentation.

2) Figure out what tags you want to write.

FAQ number 2 describes how to do this.

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

Cmely

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 ?

Phil Harvey

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

Cmely

(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 ;)


Phil Harvey

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 for more information.

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