Skip to content

Commit d4c904f

Browse files
committed
Update README.md
1 parent 28cdba8 commit d4c904f

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

README.md

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,39 @@
11
# Google Photo CLI
22

3-
GPhoto streamlines the photo uploading process and helps you keep your photo library organized. Say goodbye to manual photo uploads and hello to efficient photo management with
3+
GPhoto streamlines the photo uploading process and helps you keep your photo library organized. Say goodbye to manual
4+
photo uploads and hello to efficient photo management with
45
GPhoto.
56

67
## Features
78

8-
- **No Duplicate Processing** - GPhoto uses a cache with keys based on hash files to ensure that the same files are not processed repeatedly, saving you time and storage.
9-
- **No Duplicate Album Names** - GPhoto fetches album names from Google and compares them to ensure there are no duplicates, helping you keep your photo library organized and easy
9+
- **No Duplicate Processing** - GPhoto uses a cache with keys based on hash files to ensure that the same files are not
10+
processed repeatedly, saving you time and storage.
11+
- **No Duplicate Album Names** - GPhoto fetches album names from Google and compares them to ensure there are no
12+
duplicates, helping you keep your photo library organized and easy
1013
to navigate.
11-
- **Automatic Token Refresh** - GPhoto automatically refreshes the token if an error occurs during the photo upload process, ensuring a seamless and uninterrupted uploading
14+
- **Automatic Token Refresh** - GPhoto automatically refreshes the token if an error occurs during the photo upload
15+
process, ensuring a seamless and uninterrupted uploading
1216
experience.
13-
- **Secure Local Storage** - All authentication data and cache is securely stored locally to ensure your privacy and security. GPhoto does not collect any information from you.
17+
- **Secure Local Storage** - All authentication data and cache is securely stored locally to ensure your privacy and
18+
security. GPhoto does not collect any information from you.
1419

1520
## Installation
1621

1722
Please make sure you have the following requirements installed below:
1823

1924
- PHP 8.1 with curl, inotify, pcntl, and bcmatch extensions.
2025

21-
Download the latest release from the [releases page](https://github.com/OctopyID/GPhotoCLI/releases) or clone this repository.
26+
Download the latest release from the [releases page](https://github.com/OctopyID/GPhotoCLI/releases) or clone this
27+
repository.
2228

2329
> **Note**
2430
>
2531
> For now only tested on Linux environment.
2632
2733
## Usage
2834

29-
Before using this application, you need to create a Google Cloud Platform project and enable the Google Photos Library API and create
35+
Before using this application, you need to create a Google Cloud Platform project and enable the Google Photos Library
36+
API and create
3037
a [OAuth 2.0 Client ID](https://developers.google.com/photos/library/guides/overview#authorization).
3138

3239
The authentication file should look like this :
@@ -99,7 +106,13 @@ php gphoto upload:photo ./path/to/Pictures --auth=foo --album="My Album"
99106

100107
### 3. Albums
101108

102-
#### 3.1 Upload Single Album
109+
#### 3.1 Show List of Albums
110+
111+
```bash
112+
php gphoto list:albums --auth=foo
113+
```
114+
115+
#### 3.2 Upload Single Album
103116

104117
To upload a single album, you need to create a directory that contains all photos with the following structure:
105118

@@ -118,7 +131,7 @@ php gphoto upload:album ./path/to/MyAlbum --auth=foo
118131

119132
This will upload all files in the `MyAlbum` directory to Google Photos and create an album with the `MyAlbum` name.
120133

121-
#### 3.2 Upload Multiple Albums
134+
#### 3.3 Upload Multiple Albums
122135

123136
To upload multiple albums, you need to create a directory that contains all albums with the following structure:
124137

@@ -141,7 +154,8 @@ To upload multiple albums, you need to create a directory that contains all albu
141154
php gphoto upload:album ./path/to/MyAlbumCollection --auth=foo --multiple
142155
```
143156

144-
This will upload all files in the `MyAlbumCollection` directory to Google Photos and create an album with `MyAlbum 1` and `MyAlbum 2` names.
157+
This will upload all files in the `MyAlbumCollection` directory to Google Photos and create an album with `MyAlbum 1`
158+
and `MyAlbum 2` names.
145159

146160
## Credits
147161

0 commit comments

Comments
 (0)