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

feat: Add separate categories for "live photos" and "panoramas" and support for 360 PhotoSphere viewer #1357

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jovanbulck
Copy link
Contributor

@jovanbulck jovanbulck commented Nov 28, 2024

Add the following features:

Possible further improvements:

  • only show the "open in PhotoSphere" button for pictures that we labeled as "panoramas"?
  • parse the XMP metadata to discover actual photospheres, even if they are < 3:1? This is what the files/photosphere NC app seems to do. In principle, this could be done server side and cached in the oc_memories table, but not all panorama pictures include XMP data afaik.

image
image


public function transformPanoFilter(IQueryBuilder &$query, bool $aggregate): void
{
$query->andWhere('m.w >= '.PANOROMA_ASPECT_RATIO.' * m.h');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both of these will scan the entire table - these need the right indexes.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK this expression can't be optimized with index too, probably needs a separate boolean field.

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.

Integration with Photosphere viewer Photo Sphere Viewer Panorama Sidebar Menu
2 participants