This script is designed to restore metadata (such as capture date, camera information, and GPS coordinates) in image and video files downloaded via Google Takeout.
It reads .supplemental-metadata.json files, matches them with the corresponding media files, and embeds the metadata back into the media—EXIF for images and container-level metadata for videos.
Supported formats include .jpg images and video files with extensions .mp4, .mov, and .avi.
The processed files are saved in a separate restored folder within the specified directory.
Clone the project
git clone https://github.com/Dexarim/Uploading_Metadata_to_Images.gitGo to the project directory
cd Uploading_Metadata_ImagesInstall dependencies
pip install -r requirements.txtRrunning a script with a single folder
python main.py "path/folder"
Running a script with multiple folders and logs
python main.py "path/folder1" "path/folder1" mylog.txt