(The export zip files have in internal hierarchy of Takeout/$GOOGLE_SERVICE and since I just requested Google Photos I only have that folder in this takeout. I ran this processing script from time to time and I checked off each file in my manual checklist when the script said the zip file was processed.Īt the end of this step, I have a bunch of content in ~/Dropbox/mnemosyne/ingest/Takeout/Google Photos. The set -e tells bash to stop running if there's an error, so the files aren't removed if ditto fails. I found that unzip doesn't handle unicode characters and some of the Google Hangouts folders 2 had " : # echo "$i still downloading" else echo "processing $i" # ditto rather than unzip because ditto handles unicode filenames Listing 1: Google Takeout download processing script # !/bin/ sh set -e I wrote this shell script to "process" the downloaded files into my ingest folder: Notably, Firefox creates a second file called $FILENAME.part while files are being downloaded. Once I got the process working for these ten files, then I queued up more files to download at a time. I found that only two of the files really got downloaded at a time. I logged into Google Takeout via Firefox and started out by downloading 10 files. I created a manual checklist for the 91 files so I could record each file when I downloaded and processed it. OS X Catalina has a sleep setting "Prevent computer from sleeping automatically when the display is off" that I needed to check. I needed to set my computer never to sleep. My computer has (barely) enough disk space to download these files and still have all my other pictures on the disk, so I had to be careful not to keep duplicate copies of files in my processing. Google structured my export into 91 zip files of 2 GB each. I then tried again, and the second attempt was successful. I requested the export via, and after ~5 days I got an email that the takeout failed. See the "useful scripts" section below to find additional tags that you can add to this command to get more data back into your pictures.The first (large) step was to get my Google Photos data. json associated to a picture and integrate it as EXIF data in the picture as DateTimeOriginal. type f ! -name "*.json" ! -name "*.json.*" -exec sh -c 'for file do extension="$ out of the. Navigate to the main Google Photos folder and run these commands:įind. json files with the -edited extenseion so that when I run the exiftool scripts, -edited pictures would also find a json file to take data from. Since whenever you edit a picture with Google Photos, it saves a new file and adds -edited to the original name, I duplicated all. json file that contains precious information that we will reintegrate into the media itself as EXIF data. In each year folder, you get all your media with their associated. You end up with one folder for each year. In Google Takeout, I then selected only these albums for export. JPG Sort pictures by month Some useful scripts to use for edge cases View EXIF data for individual photos. Now i found this article ( Exported Google+ photos, how do I convert JSON data into EXIF) but it's for a single file and works. Google Photos Takeout Scripts Extract pictures from Google Takeout Duplicate JSON files for -edited photos Some JSON files have a shorter name than their associated picture Adjust dates of all files Fix iPhone Live Photos exported as. This comes in folders with 2 type of files in it.jpg and. So what I ended up doing was to go to the Google Photos interface ( ) and create an album for each year, just to have this first structure to work from. I have a full back-up of my Google Photo pictures from google Archive. When I did my first full extract from Google Takeout, I noticed that I had a lot of issues in the directories, duplicates in a lot of folders, photos in an album from the wrong year, etc. The process may take a while and Google says it can take up to a few days. If you're not comfortable with navigating your folders through a terminal, I encourage you to follow a quick tutorial online, it comes fairly easily with a bit of practice. To perform this, you need to be able to navigate through directories with a terminal.įor macOs users, you can also drag a folder from the finder into the terminal to paste its path faster. Hope this can help some of you figuring out how to get a clean library out of your exports.Īll commands below are used with macOS, any linux/unix terminal will also work. This takes a while and this is some manual work, but hopefully the commands below will help you get to your goal faster. This is a guide on how to get your photos out of Google Photos and reorganize them in a clean structure.
0 Comments
Leave a Reply. |