Read about the Google Photos Upload project here.
Ready to give it a try? Please note that this is a hobby project and comes without any warranty, but seem to work just fine!
If you run into an issue then take a look at the log file found locally on your computer in log/google-photos-upload.log
- Download the latest release for Windows here.
- Run google-photos-upload.exe (or run in a terminal using commandline parameters). It will ask for permission on the first run.
- Follow the instructions in the application to upload images/videos.
dotnet runtime installation required.
- Install .NET
- Download the latest cross-platform release here.
- Open a terminal and run this command: dotnet google-photos-upload.dll (or run in a terminal using commandline parameters). It will ask for permission on the first run.
- Follow the instructions in the application to upload images/videos.
-
Configuration options in the file
google-photos-upload.dll.config:<add key="IMG_UPLOAD_NO_EXIF" value="true"/>: Set this value totrueto prevent image upload if EXIF data is missing.
-
The Google Photos Media title will be derived from the first available of these:
- EXIF ImageDescription
- Filename without file extension
-
Supported file types: mov, avi, jpg, jpeg, gif
-
Ignored file types (other file types will give a warning message): txt, thm
-
Media will be uploaded in uncompressed 'Original Quality'. The Google Photos API does not support uploading in 'High Quality'. To recover storage; Open Google Photos Settings website and Click 'Recover Storage' (will downgrade ALL your photos in Google Photos from Original down to High Quality).
- Windows: in a terminal execute "dotnet google-photos-upload.exe -h"
- Mac/Linux: in a terminal execute "dotnet google-photos-upload.dll -h"
Available parameters:
| Parameter | Comment |
|---|---|
| -c= -command= |
Select Upload Command: -1 - Authentication only 0 - User is asked 1 - List current Google Photos Album 2 - Upload Single Folder into Google Photos as an Album 3 - Upload Multiple Folders from a main Folder into Google Photos as Albums |
| -d= -directory= |
Directory path to be processed |
| -a= -addifalbumexists= |
Add media to Google Photos album if the album already exists. Value should be 'y' |
| -h -help |
Show parameter options and exit |
The Google Photos API key is required to allow upload. There is a key provided in the source code which has constraints, but sufficient for testing.
-
Obtain a Google Photos API key (Client ID and Client Secret) by following the instructions on Getting started with Google Photos REST APIs
- NOTE When selecting your application type in Step 4 of "Request an OAuth 2.0 client ID", please select "Other". There's also no need to carry out step 5 in that section.
-
Replace
YOUR_CLIENT_IDin the client_id.json file with the provided Client ID. -
Replace
YOUR_CLIENT_SECRETin the client_id.json file wiht the provided Client Secret.