Multiresolution panorama

To display high-resolution panoramas, Pannellum’s multiresolution feature must be used. This requires converting an equirectangular panorama into Pannellum’s multiresolution format using the generate.py script.

<iframe>

<iframe width="600" height="400" allowfullscreen style="border-style:none;" src="https://cdn.pannellum.org/2.5/pannellum.htm#config=https://pannellum.org/configs/multiresolution.json"></iframe>

Standalone

https://cdn.pannellum.org/2.5/pannellum.htm#config=https://pannellum.org/configs/multiresolution.json

API

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Multiresolution panorama</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.css"/>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.js"></script>
    <style>
    #panorama {
        width: 600px;
        height: 400px;
    }
    </style>
</head>
<body>

<div id="panorama"></div>
<script>
pannellum.viewer('panorama', {
    "type": "multires",
    "multiRes": {
        "basePath": "/images/multires/library",
        "path": "/%l/%s%y_%x",
        "fallbackPath": "/fallback/%s",
        "extension": "jpg",
        "tileResolution": 512,
        "maxLevel": 6,
        "cubeResolution": 8432
    }
});
</script>

</body>
</html>

Pannellum is developed on GitHub by Matthew Petroff.
CDN via KeyCDN.