Embed a 360-degree property or venue tour photo into a real-estate or events website
Display interactive panoramic photography in a portfolio or travel blog
Link multiple panorama scenes together with hotspots to create a virtual walkthrough
Load very large high-resolution panoramas efficiently using tiled multi-resolution mode
Upload pannellum.htm and your panorama image to any web server, then embed with a single iframe tag. Multi-resolution tiling requires Python, Pillow, and Nona from the Hugin suite.
Pannellum is a web-based panorama viewer that lets you display 360-degree photos on any website. It runs entirely in the browser using standard web technologies, with no plugins or extra software required by the person viewing the page. The finished file is only about 21 kilobytes when compressed, so it loads quickly and can be dropped into any page by adding a single iframe tag. The most common use case is embedding a panorama into a webpage. You upload the panorama image and the viewer file to your web server, then copy a short snippet of HTML generated by the included configuration tool. For more control, the viewer accepts a JSON configuration file that lets you set the starting position, field of view, hotspots for linking between scenes, and other display options. A JavaScript API is also available for developers who want the viewer to respond to other elements on the page. For large panoramas where a single full-resolution image would be too slow to load, the project includes a Python script that slices the image into tiles at multiple zoom levels. This multi-resolution mode loads only the tiles the viewer actually needs to display, which keeps things fast even for very large images. The tiling script requires a separate tool called Nona, available as part of the Hugin panorama stitching software, along with a couple of Python image libraries. The viewer works in any modern desktop browser including Firefox, Chrome, Safari, and Edge. Mobile browsers and web application frameworks are not officially tested or supported. The project is open source under a free license, and its documentation and live examples are hosted at pannellum.org.
← mpetroff on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.