Expand description
Picking photos for collages: the best few from any set, and the “Made for you” collages offered on the Memories page.
Nothing here is stored. Suggestions are recomputed from the library each
time and are stable for a day; the only write is a dismissal, kept in
memory_blocks under kind collage so a dismissed source stays hidden.
Structs§
- Collage
Suggestion - Curated
- A photo kept by
curate, with how strongly it deserves to be seen. - Pick
Options - Options for
pick_best.
Enums§
- Suggestion
Source - Where a suggested collage’s photos come from.
Constants§
- MAX_
AUTO_ PHOTOS - The largest collage the auto picker builds. Busier frames stop reading as one picture at the sizes collages are shared at.
- MAX_
SUGGESTIONS - How many “Made for you” collages to offer at once.
- MIN_
AUTO_ PHOTOS - Fewer good photos than this and a set isn’t worth a collage.
Functions§
- album_
photo_ ids - Photos of an album in time order.
- curate
- The photos of a set worth looking back at, in the order they were taken.
Screenshots, tiny or badly exposed shots and repeats (copies, look-alikes)
are left out; a set with more than
maxleft keeps the best photo of each ofmaxequal stretches of its time span. Videos stay in. - dismiss
- Hide a suggested collage’s source for good.
- favourite_
ids - Favourite photos in time order.
- pick_
best - The best few photos of
photo_idsfor a collage: the strongest photo first (it gets the feature cell), then the rest in the order they were taken. Videos, screenshots, near-duplicates and badly exposed shots are left out, and picks are spread across the set’s time span so a trip isn’t summed up by one afternoon. - suggestions_
for_ today - Collages for today, built from today’s memories, pending trip and event suggestions, the user’s albums and favourites. The same library gives the same suggestions all day; rotating sources change from one day to the next. A photo is used by one suggestion at most.