Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discover: Display a random set of pictures #153

Closed
tonydub opened this issue Dec 8, 2019 · 17 comments
Closed

Discover: Display a random set of pictures #153

tonydub opened this issue Dec 8, 2019 · 17 comments
Labels
idea Feedback wanted / feature request

Comments

@tonydub
Copy link

tonydub commented Dec 8, 2019

Hi,

We could rediscover and enjoy memories you haven't seen in years by displaying a random "sample" of images with a new "Random" option among the possible choices in "Sort By" list.

@lastzero lastzero added the idea Feedback wanted / feature request label Dec 8, 2019
@lastzero
Copy link
Member

Great idea! Since we still change the database and index a lot, we don't test with many pictures - but for large collections, a random view makes sense.

@tonydub
Copy link
Author

tonydub commented Dec 16, 2019

Glad to see how this project will evolve.

@lastzero
Copy link
Member

Our idea is to add a "Discover" area where you can find photos by similarity, by color, by season or just random. This is a very first draft:

Screenshot 2019-12-29 at 15 00 27

Adding a random option to the regular search might turn out to be tricky as it needs to work together with the other filters and with all database backends. When doing a database search, you want to make the result set as small as possible to fit everything in memory. So first selecting as much as possible just to randomly change position (basically removing results from the top) is not a good strategy. In fact you expect a different result every time you click the search button plus when you scroll down to load additional results, photos must not repeat. Maybe easier done in Go and then just tell the db to return the randomly selected IDs, although I didn't spend much time investigating other solutions just yet (given the amount of other work we have to do).

lastzero added a commit that referenced this issue Dec 29, 2019
It should enable users to find photos by similarity, by color, by season or just randomly.

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
lastzero added a commit that referenced this issue Dec 29, 2019
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
lastzero added a commit that referenced this issue Dec 29, 2019
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
@lastzero
Copy link
Member

Added more tabs to get a better impression:

Screenshot 2019-12-29 at 15 52 05

lastzero added a commit that referenced this issue Dec 30, 2019
Use this flag to test new features before they are stable.

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
@lastzero
Copy link
Member

FYI: Discover area probably won't be part of the release as we received very little feedback and no pull requests so far.

@JamesSwift
Copy link

Would it be possible to implement just the "random sort" option in search view as the discover feature is not going ahead? Even if it is "truly random" and not the "pseudo random" where we expect to always see different images. The idea of continually scrolling and seeing more and more random images would be great.

While assessing different solutions for self hosting photos I tried PhotoStructure. PhotoPrism is better and has a better roadmap IMO, but one thing I loved was that the home view of PhotoStructure defaulted to random. I found so many nice memories while trying it out.

@bernsel
Copy link

bernsel commented Apr 6, 2021

We would be happy to sponsor a "random photos" feature in PhotoPrism. We think it is a great idea. A use case scenario could be a family that has taken tens of thousands of pictures over the years, and would like an evening of watching say 500 random pictures. It would be nice to be surprised by old memories, perhaps from folders you would not normally revisit.

An important aspect of a "random gallery" or "random slideshow", is that it should be possible to select which folders to include to sample random images from. Let's say images are organized in a folder structure on disk with Years as the top structure, and then subfolders for Events under each Year. It should be possible to select "only sample images from years 2017, 2018, 2019, 2020" or "only include images from these subfolders / tree-branches". This could be accomplished by means of tickboxes in a tree structure.

Could we get in direct contact, and discuss appropriate funding offline?

@graciousgrey
Copy link
Member

@bernsel feel free to reach out via hello@photoprism.app

@bernsel
Copy link

bernsel commented Apr 7, 2021

I have emailed you today.

@lastzero
Copy link
Member

Thanks! Sorry for the wait, replied today :)

@daniele-athome
Copy link

An API for getting a random photo (or set of photos) would be nice too :-)

@lastzero lastzero removed the unfunded label Nov 1, 2021
@graciousgrey graciousgrey changed the title Show a random sample of photos Discover: Show a random sample of photos Nov 3, 2021
@banoslo
Copy link

banoslo commented Oct 3, 2022

Hi guys, love this project! Is this feature meant to be similar to Apple Photos "for you" tab or Google Photos "Highlights"? I am asking because that would be more sophisticated than just pure randomness. Best regards!

@graciousgrey
Copy link
Member

@banoslo This feature is about showing a random sample of photos, which would be a nice feature for a landing page.
In addition we already have some autogenerated albums "highlights" for users:

https://docs.photoprism.app/user-guide/organize/moments/

Other related issues:

#720

lastzero added a commit that referenced this issue Jan 30, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
@lastzero
Copy link
Member

In the last commit, we added support for a "random" sort order to our API. However, please note:

  • This doesn't work well for infinite scrolling (or loading additional results), as results can repeat while others aren't displayed at all. So it's best to fetch everything you need with a single query.
  • Files that belong to a batch are also not guaranteed to be returned together, as they otherwise would be (unless you sort by similarity and the files are not similar).

@lastzero lastzero changed the title Discover: Show a random sample of photos Discover: Display a random set of pictures Jan 30, 2023
@yhslln
Copy link

yhslln commented Feb 6, 2023

Wow, happy to see this wonderfull feature go live.

@YuriShap
Copy link

Wow, thanks! So cool to watch photo library slide show using library/browse?order=random

@tonydub tonydub closed this as completed Feb 12, 2024
@alexislefebvre
Copy link
Contributor

Wow, thanks! So cool to watch photo library slide show using library/browse?order=random

Thanks for the information, it can be tested on the demo: https://demo.photoprism.app/library/browse?order=random

capraynor added a commit to capraynor/photoprism that referenced this issue Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Feedback wanted / feature request
Projects
Status: Ideas 💭
Development

No branches or pull requests

10 participants