Week of 03/21/2010 - 02:00 to 03/28/2010 - 01:59
DeepZoom (Part II): The Graphics::DZI API
(continued from Part I)
When you need to integrate the generation of DZI image pyramids into your own infrastructure, you should look first at Graphics::DZI::Files and not its superclass Graphics::DZI.
The Conventional Use Case
Objects of this class expect foremost the image to be tiled:
use Graphics::DZI::Files;
my $dzi = new Graphics::DZI::Files (image => $image);
my $dzi = new Graphics::DZI::Files (image => $image);
As detailed in the manual page, you can add more parameters, such as tile size or the format.
DeepZoom (Part I): The deepzoom Script
If installed properly, the Graphics::DZI distribution should also contain a script deepzoom which can be used from the command line.
With it you can take an image (in any format ImageMagick can interpret) and generate the image pyramid as necessary for deep zooming with the Seadragon AJAX client.
- rho's blog
- Login to post comments
- Read the full story...
