Skip to main content

Module collage_picks

Module collage_picks 

Source
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§

CollageSuggestion
Curated
A photo kept by curate, with how strongly it deserves to be seen.
PickOptions
Options for pick_best.

Enums§

SuggestionSource
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 max left keeps the best photo of each of max equal 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_ids for 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.