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...


In reply to Re: Cannot compile Image::Magick by vr
in thread Cannot compile Image::Magick by gulliver.smith

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.