W.r.t. Windows 10 & Strawberry Perl, I just checked: the latest IM comes with pre-compiled PerlMagick and PPD file to install it. You have to mark checkbox in installer GUI for these files to be unpacked. Unfortunately, it was compiled for 5.20, but if your project runs OK with this Perl version, then you get "latest official 7.0.8-23" IM, and the demo.pl runs all tests flawlessly. Unfortunately, there was a glitch while unpacking and installing with PPM command ((*) - see below), so I had to extract and copy 3 files (*.pm, *.xs.dll, *.ix) manually.
Alternatively, if fresher than 5.20 Perl is required (I tested with 5.26, don't have 5.28 installed here), you may have luck running
ppm install http://www.sisyphusion.tk/ppm/Image-Magick.ppd
to install a little bit older (6.89) PerlMagick, but, sadly, I had to comment-out, IIRC, "RadialBlur" call in demo.pl, and yet JPG file failed to save -- though PNG was written OK. Other things may also be broken.
BTW, same as Discipulus, I tend to avoid PerlMagick because of its state of sad eternal neglect -- either run external IM commands or prefer Imager and/or PDL::IO::Image for "pure Perl" image manipulation.
------
(*) I don't know what PPM comes with Strawberry Perl, they say it's
...
320. PPM 11.11_03
...
can't find it on CPAN, but, anyway, it seems to be broken:
if ($have_zip) {
$basename =~ /(.*).zip/i;
}
else {
$tarzip->extract($tarzip->list_files);
$basename =~ /(.*).tar/i;
}
{
local $ENV{HOME} = undef;
chdir($1);
}
starting from line 384. But then the $1 is undefined because matching is localized to scope, isn't it? How it was supposed to work...
|