owncloud / gallery

:sunrise: Gallery app for ownCloud, which includes previews for all supported media files
GNU Affero General Public License v3.0
88 stars 65 forks source link

Panorama viewer #234

Closed oparoz closed 8 years ago

oparoz commented 9 years ago

User requested

Some people would like to be able to view panorama or photo sphere images such as the ones taken by a mobile phone.

I know bigshot supports VR images. Not sure what it would take to implement...

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

setnes commented 9 years ago

I was thinking about this when we worked on the image preview size logic that was based on the monitor size. Even without a fancy VR viewer, panoramas might be better viewed if they could simply be zoomed and scrolled. Right now we decide the longest image edge for the preview size based on the longest monitor edge plus a normalization fudge of 100. For a panorama, requesting a larger image (make the shortest image edge match the longest monitor edge) might have an advantage... but it could end up being a very large file served. It seems like it should be a second download.

The ratio between image length and width could drive this. If it was over a certain threshold (maybe one edge has to be more than twice as long as the other), we could treat it as a panorama. I don't think we have the image dimensions at the time we are requesting the preview though.

Just thoughts...

oparoz commented 9 years ago

If we automatically download the HD pictures when zooming in (https://github.com/owncloud/gallery/issues/193). We could keep things as-is and users would get the full res image as soon as they zoom-in and could then pan left-right.

Would that be good enough?

jospoortvliet commented 9 years ago

@oparoz for panorama's - I think it's fine... Sure, the whole parallax thing is fancy but not really crucial.

oparoz commented 8 years ago

This issue was moved to nextcloud/gallery#43