mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.27k stars 723 forks source link

Possible to do simple zooming/panning? #396

Closed chconnor closed 7 years ago

chconnor commented 7 years ago

Hi -- I have a semi-giant image (500 MP) and I was looking for a solution to show it on the web with zooming, panning, etc. Pannellum seems to have all the features I need, but it's not clear to me from skimming through the website if it can do something as simple as I describe.

Meaning: I don't want any three-dimensional projection/distortion/rotation, just a simple ability to scroll around in a 2D image, zoom deep in to it, etc.

And if Pannellum can't do this, I would welcome any tips for something that can.

Thanks!

Pannellum looks fantastic, by the way -- great work.

mpetroff commented 7 years ago

Pannellum only works with equirectangular / cube map panoramas, not flat images. I'd recommend looking at OpenSeadragon.

chconnor commented 7 years ago

Looks like exactly what I need, thanks for the reply.

mms- commented 5 years ago

Would it be hard to modify the code to support flat images with multi resolution? The reason is both flat and panorama images types will be viewed in succession, and loading another viewer just for flat images would introduce quirks in the UI and double JS payload.

mpetroff commented 5 years ago

I have no intention of adding such a feature.

mms- commented 5 years ago

I understand, just wondering what your advice is, given your knowledge of the code, is there a clean way to add this?

mpetroff commented 5 years ago

Not really. Everything is panorama-specific, so only rotations are handled, not panning.