Attribute <image> fails type constraint
Posted: 2014-11-06T18:55:12-07:00
I am getting his error when I used Graphics::DZI which must also use Image::Magick
Attribute <image> does not pass the type constraint because: Validation failed for 'Image::Magick' with value record-image.jpg <not isa Image::Magick> at ...
What am I doing wrong?
Thanks,
Marc
This is my code
Attribute <image> does not pass the type constraint because: Validation failed for 'Image::Magick' with value record-image.jpg <not isa Image::Magick> at ...
What am I doing wrong?
Thanks,
Marc
This is my code
Code: Select all
use Graphics::DZI;
use strict;
use warnings;
my $image = "record-image.jpg";
my $overlap = "0";
my $tilesize = "256";
my $format = "jpeg";
my $dzi = Graphics::DZI->new(overlap => $overlap,
image => $image,
tilesize => $tilesize
);
write_file ("xxx.xml", $dzi->descriptor);
$dzi->iterate ();
exit;