Problem: Google Photos Takeout exports modify file timestamps during the zip process, breaking chronological sorting in photo management apps like Immich. While Google includes the original timestamps in .supplemental-metadata.json
files, most apps ignore these.
Solution: This script restores original timestamps from Google's metadata files to both the filesystem and EXIF data, enabling proper date-based sorting and organization.
WARNING: This script is going to set and reset you machine's date repidly. I'm using it on a raspberry pi/NAS. It will set it back when it's complete after every file.
- Reads
.supplemental-metadata.json
files from Google Photos Takeout