google-photos-uploader

module
v0.0.0-...-5ab89ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: MIT

README

Google Photos CLI Uploader

A command line utility for uploading a local directory structure of (JPEG) images into Google Photos as new Albums. The contents of each subdirectory (and, optionally, the contents of its children recursively) are uploaded as an Album whose name is derived from the name of the directory.

Prerequisites

Using the Google Photos API requires the use of the Google OAuth2 authorization flow. Unfortunately this means you have to set up a GCP project for this purpose.

See the instructions here: https://developers.google.com/photos/library/guides/get-started.

Make a note of the Client ID / Client Secret values from the GCP console.

Exiftool

This project uses https://exiftool.org/ to write EXIF data into the JPEG files.

To install the tool:

Building the application

To build the binary (into bin/), run:

make uploader

License

Released under the MIT license. See LICENSE.md.

Contact

For any questions, concact Matti Dahlbom mdahlbom666@gmail.com.

Directories

Path Synopsis
cmd
internal
googlephotos
Package google_photos contains all the types used with communication with Google Photos API
Package google_photos contains all the types used with communication with Google Photos API
googlephotos/util
Manages authenticating to Google and providing an OAuth2 token
Manages authenticating to Google and providing an OAuth2 token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL