openseadragon cannot open big legacy image pyramids image?
See original GitHub issueI try to use this mode:
http://openseadragon.github.io/examples/tilesource-legacy/
my code is:
<script type="text/javascript"> var viewer = OpenSeadragon({ id: "contentDiv", prefixUrl: "images/", tileSources: { type: 'legacy-image-pyramid', levels:[{ url: 'image2/4.jpg', height: 1280, width: 1280 },{ url: 'image2/3.jpg', height: 2560, width: 2560 },{ url: 'image2/2.jpg', height: 5120, width: 5120 },{ url: 'image2/1.jpg', height: 10240, width: 10240 },{ url: 'image2/0.jpg', height: 20480, width: 20480 }] }, showNavigator:true }); </script>
when it run in the browser(IE or Chrome), zoom into the big image(0.jpg (20480 X 20480)), the browser will become blank. when it turn to smaller image(1.jpg (10240 X 10240)), the browser will show normal.
why? because the browser memory Limit ?
thank you!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
The tiled formats (like DZI, for instance) have the advantage of breaking the large levels into small, bite-size pieces. That way you never need to load a single 40 MB image. Transferring 40 MB can take several minutes on some connections, so it’s definitely worth the trouble!
So it does work for you on a server? Then maybe just don’t worry about the fact that it doesn’t work locally?
But yes, the legacy tile source loads the entire tile for the appropriate level; it can’t load just a region of that tile. Looks like your largest tile is dozens of megabytes in size, so that’s definitely way too big for a reasonable user experience. I’m still downloading your largest tile, but the second largest (1.jpg) is 12mb and it took almost 2 minutes to load for me.
You should look into tiling it with one of the tools listed here:
http://openseadragon.github.io/examples/creating-zooming-images/