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

Add Flex and Highlights layouts #108

Merged
merged 8 commits into from
May 28, 2024
Merged

Add Flex and Highlights layouts #108

merged 8 commits into from
May 28, 2024

Conversation

SmilyOrg
Copy link
Owner

@SmilyOrg SmilyOrg commented May 10, 2024

Both layouts are based on finding optimal photo row breaks using a variant of Knuth & Plass.

Flex

image

Flex is the simpler layout of the two where all rows are approximately the same height. Think of it as Album with smarter row breaks.

Mostly noticable with panoramas and at the end of the collection (it will try to avoid photos hanging off the end). It will also add locations inline if photos have GPS coordinates and reverse geocoding is enabled.

Highlights

image

Highlights is a more experimental variant on Flex, but with a bit of a twist! Instead of a more or less content row height, it will try to vary it based on the "sameness" of the photos. Best used with bigger photo sizes (pictured button).

The idea is to make travel photo collections more skimmable by shrinking similar and repeating photos.

Similarity is based on the AI image embeddings, so photos close in "meaning" will be considered as semantically similar. Seems to work quite well, but you need to have AI enabled and photos scanned for it to work as expected.

TODO

  • make it handle non-ai-indexed photos more gracefully than just skipping them

@SmilyOrg SmilyOrg merged commit 926b69d into main May 28, 2024
1 check passed
@SmilyOrg SmilyOrg deleted the smarter-layouts branch May 28, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant