vastmultimedia.blogg.se

Flickr uploadr reupload
Flickr uploadr reupload











flickr uploadr reupload
  1. #Flickr uploadr reupload update#
  2. #Flickr uploadr reupload license#

Thus, if you want to make changes, just fork the repo and hack away! License

#Flickr uploadr reupload update#

Now that the task is complete, I'm unlikely to update this repository or accept any pull requests.

flickr uploadr reupload

Uploading my Flickr photos to Google was a one time task, which these utilities helped to accomplish. So in case of an broken upload, the best we can do is to compare count of album contents and reupload the entire album if there's a mismatch.

  • Google Photos API doesn't give a listing of album contents.
  • So I just upload the Flickr album cover photo as the first photo in the Google album, which then becomes the default album cover.
  • Google Photos doesn't provide an API to set the album cover image.
  • These heuristics have worked for my photo dump but may break for you! So the uploader has to use some name based heuristics to map a flickr photo id to the photo file on disk.
  • While the Flickr dump has a metadata json per photo that describes everything about the photo, the one thing it doesn't specify is the actual file name of the photo on disk.
  • The upload utility works around various limitations in the Google Photos API and the Flickr data dump: That's what I did while developing this! Limitations TIP: You may want to create a brand new Google Account to test this out first, before you let it lose on your primary Google Photos account. Progress info will be printed to console and more detailed logs written to flickr-restore.log. You only need to do it once and the access tokens are saved to the previously mentioned auth_token_file. The first time that you run this, it'll prompt you to give access to your Google Photos account. Ensure you have a backup before running it! WARNING: This process does an in-place update of photo files. It only does this for photos which don't already have embedded GPS information. The exif-restore.py utility does exactly this - take the geolocation information from each photo's metadata json file and update the file's exif information with the gps data. However, it does honour any geo location information already present in the photo's exif metadata. Google Photos doesn't have an API to set geo location.

    flickr uploadr reupload

    Thus, I wanted to retain that geo location information when migrating to Google Photos. I spent a lot of time manually geo-tagging thousands of photos over the years using the Flickr photo organizer. For now, just provide the path to a non-existing file. This file will be created when you first run the upload process.auth_token_file: The file which will hold access tokens to the Photos API.client_secrets_file: The client credentials file that you got after setting up Google Photos API access.You may supply a different albums.json file with a different set of albums for upload.flickr_albums_json: Path to the albums.json metadata file.flickr_photo_json_dir: The folder containing all the flickr json metadata files.flickr_photo_dir: The single folder containing all the flickr photos/videos.Update the file contents as per the following: "auth_token_file": "c: \\media \\flickr-restore \\auth-token.json " "client_secrets_file": "c: \\media \\flickr-restore \\credentials.json ", "flickr_photo_dir": "c: \\media \\flickr-restore \\flickr-photos ", You may want to create a virtualenv first.NOTE: These scripts will not upload all the photos from the Flickr dump only photos inside albums. Set the album description, album cover photo, and photo description, as best as the API allows.For each Flickr album, recreate the album in Google Photos and upload the contained photos and videos.This enables Google Photos to correctly geo-tag uploaded photos. Update the EXIF metadata in photo files with the geo-tagging information in the Flickr json metadata.The scripts in this repo help achieve the following: Google Photos provides a basic API to create albums and upload photos. This data dump includes all the photos and videos that you ever uploaded to Flickr, as well as lots of json filesĭescribing all of your albums, comments, and other activity on Flickr. This repo contains couple of utilities that import albums from Flickr into Google Photos.įlickr provides a complete data dump through their Request my Flickr Data option in account settings.













    Flickr uploadr reupload