NAME
Graphics::DZI::Files - DeepZoom Image Pyramid Generation, File-based
SYNOPSIS
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 ();
DESCRIPTION
This subclass of Graphics::DZI generates tiles and stores them at the specified path location.
INTERFACE
Constructor
Additional to the parent class Graphics::DZI, the constructor takes the following fields:
format
(defaultpng
):-
An image format (
png
,jpg
, ...). Any format Image::Magick understands will do. 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.
Methods
- manifest
-
This method writes any tile to a file, appropriately named for DZI inclusion.
AUTHOR
Robert Barta, <drrho at cpan.org>
COPYRIGHT & LICENSE
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.