The inputDir needs to be a single directory containing an extracted zip from Google takeout. an errorDir directory path where images with bad EXIF data that fail to process will be moved to.This needs to be an empty directory and can be anywhere on the disk. an outputDir directory path where processed files will be moved to.an inputDir directory path containing the extracted Google Takeout.The path of this directory will be what we pass into the tool as the inputDir. Extract the zip file into a directory.Click "Create Export", wait for a link to be sent by email and then download the zip file.If you do this, be sure to merge the contents of any directories with the same name, rather than overwriting them. Important: If your collection is larger than this (or you need to export it as multiple smaller archives) then you will need to merge the resultant folders together manually before using this tool. Under "File type & size" I recommend increasing the file size to 50GB.If you don't do this you will end up with duplicates. Important: If you have custom albums (ones with non-date names), deselect these because the images will already be referenced by the date-based albums.Deselect any "Hangout: *" albums unless you specifically want to include images from chats. Keep all of the date-based albums selected.Deselect all products and then tick Google Photos.At the time of writing the steps to do this are: The first step to using this tool is to request & download a Google Takeout. Some file formats such as GIFs or MP4 videos don't have this metadata and thus also get sorted into the wrong place when run through tools that organise images based on the metadata timestamps.they were shared with me or imported into the library by other means, and the source did not include a timestamp in the EXIF metadata) My guess is that these images originated from other sources (e.g. Whilst most of my images contained reasonable EXIF timestamps for the time they were taken (written by the phone's camera), a small number did not.Instead, Google's metadata comes out in the accompanying JSON files. EXIF / IPTC) in the image files is not updated if changes are made within Google Photos, for example if the dates are updated using the Google Photos UI. From what I can tell, the embedded metadata (e.g.For an image named IMG123.jpg, sometimes you get but sometimes it's just IMG123.json The naming convention for the JSON files seems inconsistent and has some interesting edge cases.In the case that the export was split across multiple zips, I'm not sure whether there is any guarantee that the images & JSON files will always be co-located within the same export The date based folders don't always contain perfect pairs of images and JSON files, sometimes you get JSON files without a corresponding image. The JSON sidecar files include, amongst other things, a useful photoTakenTime property. These folders contain a mixture of image files and JSON metadata files. Each zip contains folders for certain dates and/or album names.There are some interesting challenges to note here: populate the DateTimeOriginal field in the EXIF metadata if this field is not already setĪt the time of writing (October 2020), Google Takeout provides you with one or more zip files, structured in a way that is fairly unintuitive and tricky to make use of directly.Įxtracting the zip, you might find something similar to this:.set a meaningful modification date on the file itself.This tool aims to eliminate some of those issues by reading the photoTakenTime timestamp from the JSON metadata files that are included in Google Takeout export and using it to: Whilst it is great that I was able to use Google Takeout to extract all of my stored images from Google Photos at once, I found that some images were landing in the wrong place due to missing DateTimeOriginal EXIF timestamps. Silent Sifter provides a fast way to organise images into folders based on the timestamps embedded in the image metadata or failing that, the file modification timestamps. This library would be organised into a date-based folder structure, with images being automatically moved into the correct structure using Silent Sifter. My goal was to extract all photos from my Google Photos account and incorporate them into a master photo library on my Mac. I wrote this tool to help me overcome some issues that I had when trying to make use of photos exported from Google Photos using Google Takeout. Yarn start -inputDir ~/takeout -outputDir ~/output -errorDir ~/error
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |