Blog post: https://forensenellanebbia.blogspot.com/2015/08/geotag2kml-python-script-to-create-kml.html
The is a cross-platform script that uses ExifTool to find geotagged files and parse their metadata. It then creates two different Google Earth .KML files to display the photos/videos found.
The .KML file will be structured this way:
#Python3 dependencies
#Windows 10 x64
#Ubuntu (last tested with Ubuntu 22.04.1 LTS)
#ExifTool
sudo apt install libimage-exiftool-perl -y
#libheif
sudo apt-get install libheif-examples
#Google Earth
wget -O ~/google-earth.deb https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb && sudo dpkg -i ~/google-earth.deb
#Mac OS (tested with macOS Big Sur 11.0.1)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew install libjpeg && pip3 install Pillow --user
brew install imagemagick
Run the script and type the absolute path of the directory to parse. Examples:
The output files will be saved under the given path.