ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: dima on February 08, 2020, 02:00:12 PM

Title: How can I display the city in the name?
Post by: dima on February 08, 2020, 02:00:12 PM
Hello,
How can I add the location in an image? For example 2020-02-01_Tokyo.jpg

Title: Re: How can I display the city in the name?
Post by: Phil Harvey on February 08, 2020, 07:11:52 PM
exiftool -city=Tokyo FILE
Title: Re: How can I display the city in the name?
Post by: StarGeek on February 08, 2020, 09:30:13 PM
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?
Title: Re: How can I display the city in the name?
Post by: dima on February 11, 2020, 11:09:08 AM
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?
Title: Re: How can I display the city in the name?
Post by: Phil Harvey on February 11, 2020, 11:25:54 AM
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 (https://exiftool.org/forum/index.php?topic=8910.msg45862#msg45862) discussing this.

- Phil