Graphics::DZI::Files - DeepZoom Image Pyramid Generation, File-based
use Graphics::DZI::Files; my $dzi = new Graphics::DZI::Files (image => $image, overlap => 4, tilesize => 256, scale => 2, format => 'png', prefix => 'xxx', path => '/where/ever/'); use File::Slurp; write_file ('/where/ever/xxx.xml', $dzi->descriptor); $dzi->iterate ();
This subclass of Graphics::DZI generates tiles and stores them at the specified path location.
Additional to the parent class Graphics::DZI, the constructor takes the following fields:
format
png
An image format (png, jpg, ...). Any format Image::Magick understands will do.
jpg
path
A directory name (including trailing /) where the tiles are written to.
/
prefix
The string to be prefixed the _files/ part in the directory name. Usually the name of the image to be converted. No slashes.
_files/
This method writes any tile to a file, appropriately named for DZI inclusion.
Robert Barta, <drrho at cpan.org>
<drrho at cpan.org>
Copyright 2010 Robert Barta, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Graphics::DZI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graphics::DZI
CPAN shell
perl -MCPAN -e shell install Graphics::DZI
For more information on module installation, please visit the detailed CPAN module installation guide.