ExifTool Forum

ExifTool => Newbies => Topic started by: nquental on May 17, 2024, 09:35:41 PM

Title: Geolocation of all files in a folder
Post by: nquental on May 17, 2024, 09:35:41 PM
Hello!
Is it possible to write geolocation data (country, city) for all files at one in a folder and subfolders? It seems  "exiftool -api geolocation" is only applicable to a specific file each time?
Thanks in advance,
Nuno
Title: Re: Geolocation of all files in a folder
Post by: StarGeek on May 18, 2024, 02:20:24 PM
Quote from: nquental on May 17, 2024, 09:35:41 PMIt seems  "exiftool -api geolocation" is only applicable to a specific file each time?

No, you can mix as many directories and individual files on the command line as you want, limited only top the max length of the command line (a bit over 8,000 characters on Windows, something like 100k characters on Linux/Mac).

For example
exiftool -ISO C:\pictures\Wedding D:\MorePictures\SingleFile.jpg E:\Another\Picture\Directory\

Add the -r (-recurse) option (https://exiftool.org/exiftool_pod.html#r-.--recurse) to recurse into subdirectories.  For recursion, see also Common Mistake #2 (https://exiftool.org/mistakes.html#M2).