Table of Contents
Compatible with DokuWiki
Angua, Adora Belle
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to panorama
This plugin lets you display very large images, like panorama or medical images, in a user friendly way. The image is shown in a view pane that only loads the currently visible part of an image. To do that the image is sliced into several smaller tiles. The image can be dragged and zoomed similar to Google Maps.
The slicing is done on the fly when new tiles are requested, no preprocessing of your images is needed.
Download and Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
- Version upped (2016-07-06 20:43)
- Version upped (2016-02-03 18:18)
- Merge pull request #6 from splitbrain-forks/php7-signature (2016-02-02 16:21)
- Adjust method signatures to match parent (2016-02-02 16:14)
- Version upped (2016-01-24 14:13)
- Version upped (2015-02-24 21:07)
- Merge pull request #5 from PatrickLerner/master (2014-10-20 11:59)
- Replaced deprecated getElementsByClass with jQuery (2014-10-19 07:34)
Syntax and Usage
The usage is similar to the image syntax, just prefix your image with
panoview> and give the size of the wanted viewport. E.g.:
You can align the image using spaces (center is default). This would right align:
And this left aligns:
The initial zoom value defaults to 1 (higher number is deeper zoomed in). You can set by prefixing the wanted value by
Z and add it to the parameters by an
The image can be dragged with the mouse. Zooming is done with the +/- controls in the lower right corner.
Working with large images needs a lot of memory. The plugin can use the GD library, but is then limited to the PHP memory limit set in php.ini. It is highly recommended to use ImageMagick via the im_convert option instead.
Creating the tiles happens on the fly, panning an image for the first time will probably be very slow. But the tiles are cached, so subsequent views are much faster.
The plugin creates different tiles for each zoom level. They do take a lot of space, be sure you have enough.
Creating tiles can be very CPU heavy. When you view a image for the first time, multiple tiles will be requested at once. Each request will trigger the image processing.
To avoid bringing your server to a complete halt, the tiling generator creates a lock file. This means only one tile is generated at the same time1) but also slows down the initial slicing. Cached tiles are delivered immediately without locking.
To lower the CPU impact when running the plugin with Image Magick, a path to the
nice utility should be specified in the config manager. This way the tile generator has lower priority than all your other webserver tasks.
I haven't tested this on Internet Explorer, yet. It might be broken - let me know if it works or not.
If you don't get any output then the tile generation is probably broken (most probably a memory problem, see above). To debug call a tile URL manually and check for any errors. E.g.
Here's the plugin in action. Add your own site if you use it.