API: Provide Counts of Photos and Albums #196

Open
opened 2026-02-19 23:03:40 -05:00 by deekerman · 5 comments
Owner

Originally created by @thielepaul on GitHub (Feb 5, 2020).

The API should provide the count of photos and albums:

  • total number of photos (available in clientConfig.count.Photos, but not exposed via the API)
  • number of photos per month (provided by /moments/time endpoint)
  • number of photos per album (provided by /albums endpoint)
  • number of archived photos
  • number of albums (available in clientConfig.count.Albums, but not exposed via the API)

Photo counts should be consistent with the number of photos found via /photos:

  • number of photos in albums should not include archived photos
  • fix: if a duplicate is placed in the Originals folder and then indexed it will be included in the counts but not found via the /photos endpoint (similar behavior occurs for related photos)
  • fix: if a photo is deleted from disk, it is still included in the count but not found via the /photos endpoint
Originally created by @thielepaul on GitHub (Feb 5, 2020). The API should provide the count of photos and albums: * [ ] total number of photos (available in `clientConfig.count.Photos`, but not exposed via the API) * [x] number of photos per month (provided by `/moments/time` endpoint) * [x] number of photos per album (provided by `/albums` endpoint) * [ ] number of archived photos * [ ] number of albums (available in `clientConfig.count.Albums`, but not exposed via the API) Photo counts should be consistent with the number of photos found via `/photos`: * [ ] number of photos in albums should not include archived photos * [ ] fix: if a duplicate is placed in the `Originals` folder and then indexed it will be included in the counts but not found via the `/photos` endpoint (similar behavior occurs for related photos) * [ ] fix: if a photo is deleted from disk, it is still included in the count but not found via the `/photos` endpoint
Author
Owner

@graciousgrey commented on GitHub (Apr 22, 2020):

What's the current status? Do you need help from us?

@graciousgrey commented on GitHub (Apr 22, 2020): What's the current status? Do you need help from us?
Author
Owner

@thielepaul commented on GitHub (Apr 22, 2020):

The current status, as far as I know it, is as indicated by the checkmarks. I do not expect that I will work on PhotoPrism project in the near future, as I recently started a new full-time job and my spare time is limited.

If you think this issue is important, feel free to work on it, I currently do not plan to do so.

@thielepaul commented on GitHub (Apr 22, 2020): The current status, as far as I know it, is as indicated by the checkmarks. I do not expect that I will work on PhotoPrism project in the near future, as I recently started a new full-time job and my spare time is limited. If you think this issue is important, feel free to work on it, I currently do not plan to do so.
Author
Owner

@lastzero commented on GitHub (Apr 22, 2020):

@thielepaul That's sad to hear, but of course your job has priority. Will the mobile app continue to be developed or shall we find new maintainers?

We were actually planning to get in contact with you (both) in preparation of our stable release. That's also why we just went through all open issues.

@lastzero commented on GitHub (Apr 22, 2020): @thielepaul That's sad to hear, but of course your job has priority. Will the mobile app continue to be developed or shall we find new maintainers? We were actually planning to get in contact with you (both) in preparation of our stable release. That's also why we just went through all open issues.
Author
Owner

@thielepaul commented on GitHub (Apr 22, 2020):

Yes, that does also include the mobile app, so it would be good to find new maintainers for it.

I still believe that there is a need for a self-hosted open source alternative to Google Photos, so thank you for working on PhotoPrism!
I am also looking forward to check out the stable release of PhotoPrism :)

@thielepaul commented on GitHub (Apr 22, 2020): Yes, that does also include the mobile app, so it would be good to find new maintainers for it. I still believe that there is a need for a self-hosted open source alternative to Google Photos, so thank you for working on PhotoPrism! I am also looking forward to check out the stable release of PhotoPrism :)
Author
Owner

@lastzero commented on GitHub (Apr 22, 2020):

You're always welcome to contribute when you have time. Thanks for all the work you put into this and sorry for not reaching out earlier!

@lastzero commented on GitHub (Apr 22, 2020): You're always welcome to contribute when you have time. Thanks for all the work you put into this and sorry for not reaching out earlier!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/photoprism#196
No description provided.