
Replace the directory to process and run the command exiftool -r -d %s -tagsfromfile "%d/%F.QuickTime- and PNG-specific tags aren't updated either. PHOTO_NAME(1).jpg being confused with PHOTO_NAME.jpg(1).json. However, those scripts have limitations with regards to timezones, and to some pictures with a name that differs slightly from the name of the JSON file, e.g.

It could use some love (parameterization, error-handling, etc), but I didn’t care too much,Īs I hopefully never have to use this again.There are now many scripts and tools available that can extract the metadata from JSON files and apply it to the photos and videos: Of these, about 1500 were missing dates, of which all but about 20 were fixed by my script. Long story short - my takeout had around 23k files, half of which are probably media, and the rest json. What is Google Takeout Though it sounds delicious, Google Takeout is none other than a way to export crucial data from most of your Google apps and programs.
#Photos takeout google update
Which fixed the gifs, but I did not update my “reporting” logic to take this into account, since I had so few gifs missing dates, meaning I realized that gifs use a different tag than jpgs, I ended up modifying the step that updates the media files to write both the tags, Use exiftool to identify files that were fixed in the staging folder, and then move these into a Fixed folder.Īt this point, all the media files in the staging folder were missing dates.This is helpful for files that didn’t have a json file whose name was something like.Use exiftool to batch update all the files in the staging folder still missing dates based on their filenames.Use exiftool to batch update all the files in the staging folder using the dates in their corresponding json files.Exiftool has a way to alter the time by an offset, but it doesn’t take into account DST.This is important, because if we didn’t do this, the times would all be off in the files by 4 or 5 hours, depending on Daylight Savings.Modify the timestamp in the json files to be in my local timezone.And other oddities that are frustrating.Sometimes it would be (notice the e in jpeg).


#Photos takeout google how to
I initially searched for how to fix this problem, and found a couple of GitHub repos containing solutions. zip file archive to your desktop, double click the. These json files have metadata about the media files, such as the created date. Produces not just the files you’ve uploaded to them, but corresponding json files for each file you’ve uploaded. Google claims that the dates aren’t modified in the files that you originally provide to them. You probably did something similar, and like me, you quickly realized that lots of your photos didn’t have the proper dates. That was reduced to 130 gigs after I realized that they exported my albums as duplicate photos. This produced just over 220 gigs of photos and videos,
#Photos takeout google download
This service allows you to download all data including contacts, drive data and.

I recently exported all of my Google Photos data using their “Takeout” tool. Google has already thought about this and announced the Google Takeout service.
