How can I display the city in the name?

Started by dima, February 08, 2020, 02:00:12 PM

Previous topic - Next topic

dima

Hello,
How can I add the location in an image? For example 2020-02-01_Tokyo.jpg


Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

Quote from: dima on February 08, 2020, 02:00:12 PM
How can I add the location in an image? For example 2020-02-01_Tokyo.jpg

Your question isn't very clear.  Do you mean embed a city name in the file as per Phil's post?  Or extract the city name from the file name?  Or add the city name to the file name?
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

dima

The file should be renamed automatically. Exiftool should read the value from the image. I know that there are only coordinates. So maybe link to a database or a CSV file?

Phil Harvey

It sounds like you want to take the GPS coordinates from an image and convert this to a city name (also known as reverse geotagging in some circles).  Here is a thread discussing this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).