Pannellum is a small browser library for viewing equirectangular panoramas using HTML5, CSS3, JavaScript, and WebGL without plugins.
Overview
Pannellum is a lightweight panorama viewer aimed at web pages. It renders equirectangular images in the browser using HTML5, CSS3, JavaScript, and WebGL, and can ship as a compact standalone file for embedding.
You host the built viewer file and panorama assets on a web server, including for local testing, because browsers restrict file access without a server. A configuration utility helps generate embed code, while JSON configuration and a JavaScript API support richer integrations. Multiresolution panoramas can be generated with the included Python helper when Hugin’s nona tool and required Python packages are available.
The project documents compatibility with recent Firefox, Chrome, Safari, and Edge releases on desktop. Hosted examples and a parameter reference describe controls, scenes, hotspots, and related options. Minified releases are recommended for production, and user-facing strings can be customized through configuration.
Development and examples assume serving the project from a local HTTP server. Tests use Selenium with browser drivers, but end users typically only need the prebuilt assets and their own panoramas.
Key features
- WebGL equirectangular panorama display
- Single-file embeddable viewer
- JSON configuration and JavaScript API
- Web-based configuration generator
- Multiresolution tile generator script
- Customizable UI strings
- Hosted documentation and examples
- No browser plugin required
Use cases
- Embedding panoramas on web pages
- Virtual tours with linked scenes
- Self-hosted panorama galleries
- Multiresolution large panorama delivery