Skip to content

wowtor/google_takeout_metadata_fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Google photo fix

Problem

Some photo viewers may take the file modification date as the date of the photo. However, photos obtained from Google Takeout have no sensible file modification date. This will mess up the photo meta data.

Solutions

This script updates the file creation date with the timestamp from the JSON metadata file generated by Google.

Usage

git clone git@github.com:wowtor/google_takeout_metadata_fix.git

To fix a specific file:

google_takeout_metadata_fix/photofix.py PATH/TO/TAKEOUT/filename.jpg

To fix all files in a directory:

google_takeout_metadata_fix/photofix.py PATH/TO/TAKEOUT/

About

When restoring photos from Google Takeout, their modification date is lost. This script updates the file creation date with the timestamp from the JSON metadata file generated by Google.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages