Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^5: Image-Magick on Strawberry Perl

by syphilis (Bishop)
on Nov 02, 2015 at 11:30 UTC ( #1146702=note: print w/replies, xml ) Need Help??

in reply to Re^4: Image-Magick on Strawberry Perl
in thread Image-Magick on Strawberry Perl

I can't find the ppd at this place:

No Image-Magick packages there for anything more recent than perl-5.16.x.
And I don't know of any other repo that has them.
What's your perl -V output ? Do you want 8-bit pixels or 16-bit pixels ?

If no-one knows of suitable Image::Magick ppm packages, I'd probably start with the appropriate dll download from

Update: I just grabbed
The good news is that it contains a ppm package for x64 Strawberry Perl 5.20.
The bad news is that, having installed that Image::Magick ppm package on my x64 Strawberry Perl 5.20.0, Magick.xs.dll won't bloody load.
Maybe I've done something wrong ... or maybe not ...


Replies are listed 'Best First'.
Re^6: Image-Magick on Strawberry Perl
by Anonymous Monk on Nov 03, 2015 at 09:54 UTC

    Thank you for your answer.

    I've installed the package you mention and installed the ppd file found inside but I get this message:

    Error installing package 'd:\Image-Magick.ppd': Read a PPD for 'd:\Image-Magick.ppd', but it is not intended for this build of Perl (MSWin32-x64-multi-thread-5.22)

    My Perl is:

    This is perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread

      This is perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread

      ppm install

      That should work fine with the above version of Strawberry Perl (and perhaps ActivePerl, too).
      It requires that you have the 8-bit pixel (quantum depth = 8) build of ImageMagick installed and in your path.

      It would help me considerably if you let me know of any problems you have with that ppm.

      By the end of today I hope to accommodate QD=16 builds as well - and for other configurations of perl-5.22.x as well.
      Hopefully, they will ship with their own ImageMagick, and not require the user to install ImageMagick on his machine, but I need to investigate the feasibility of that first.

        Hmmm ... disappointingly, it seems that these dll builds of ImageMagick make use of the Windows registry to locate the coder dlls.
        That quickly kills any enthusiasm I might have had for creating ppm packages. (Just makes me want to vomit, actually.)

        I see that Jean-Louis' Bribes repo provides builds (perl-5.16.x and earlier only) that don't rely on the registry. He has simply placed the coder dlls in the blib/auto/Image/Magick folder - which apparently works for him ... but doesn't work for me.
        Does anyone know how he gets that to work ?

        Update: Just for the record, building Image::Magick for Strawberry Perl seems to be not too difficult.
        Having downloaded and installed into C:\_64\im (making sure to tick the box that would install headers and libraries) I cd'd to \_64\im\ImageMagick-6.9.2-Q\lib and ran:
        gendef ../CORE_RL_magick_.dll * [../CORE_RL_magick_.dll] Found PE+ ima +ge gendef ../CORE_RL_magick++_.dll * [../CORE_RL_magick++_.dll] Found PE+ + image gendef ../CORE_RL_wand_.dll * [../CORE_RL_wand_.dll] Found PE+ image dlltool --kill-at --input-def CORE_RL_magick_.def --output-lib libCORE +_RL_magick_.a dlltool --kill-at --input-def CORE_RL_magick++_.def --output-lib libCO +RE_RL_magick++_.a dlltool --kill-at --input-def CORE_RL_wand_.def --output-lib libCORE_R +L_wand_.a dlltool --kill-at --input-def CORE_RL_magick_.def --output-lib libMagi +ckCore.a
        It's quite likely that only the first and last of those 7 commands actually needed to be run.
        Following that, I ran:
        set PATH=%PATH%;C:\_64\im\ImageMagick-6.9.2-Q8 set CPATH=C:\_64\im\ImageMagick-6.9.2-Q8\include;%CPATH% set LIBRARY_PATH=C:\_64\im\ImageMagick-6.9.2-Q8\lib;%LIBRARY_PATH%
        Then cd to the top level folder of the PerlMagick-6.98 source and run 'perl Makefile.PL', 'dmake test' and 'dmake install'.
        The only test that failed was t/wmf/read.t.

      For 5.22, I think you currently have to build Image::Magick yourself.
      You've already downloaded the ImageMagick files that you need for the job - you still need to follow the instructions given in the README that ships with the PerlMagick source.
      I'll try doing that myself tomorrow - and report back if my attempts are successful.

      Thats great, you have your answer

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1146702]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2019-08-22 07:01 GMT
Find Nodes?
    Voting Booth?

    No recent polls found