Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Image::Magick on Windows!

by jeffpflueger (Beadle)
on Nov 28, 2003 at 23:01 UTC ( [id://310800]=note: print w/replies, xml ) Need Help??


in reply to Image::Magick on Windows!

What I have learned so far on getting PerlMagick up and running on Windows 2000:

The site: http://www.imagemagick.org/www/windows.html doesn't seem to actually have a link to the ImageMagick windows installer. But do a search on google for: ImageMagick-5.5.7-12.zip and you will find the zip file containing the .exe file with the ImageMagick installer.

Active State Perl does not in fact seem to provide the Perl Magick module as an option at installation as it claims. With ImageMagick 5.5.7 installed and working, when I install Active State Perl 5.8.1.807 the installer states that it will provide the installation of Perl Magick as an option if I have ImageMagick installed, but this does not in fact occur.

So, I have now tried to install the module via the CPAN module (not much luck here), and then manually with MakeFile.pl (many errors given for libraries not found) and then nmake (error given because cl is not a recognizable executable), and finally had the best luck with ppm (make sure that you are using a repository with Image Magick...the comment above contains info on setting up ppm to point to a repository that does have image-magick)

Here is what I learned about the ppm installation: If one does the FULL install of image-magick (available in the repository in an above message), this installs all the perl module stuff and the required ImageMagick dll's. This is probably the cleanest route because it is imperitive that the ImageMagick version and the PerlMagick version match. If they do not match you will have problems.

Replies are listed 'Best First'.
Re: Re: Image::Magick on Windows!
by jeffpflueger (Beadle) on Nov 28, 2003 at 23:09 UTC
    And now....the module is installed, but the following code generates errors:

    #!c:/perl -w use strict; use Image::Magick; my $image = new Image::Magick; my $x = $image->Read("nettie.tif"); warn "$x" if "$x"; $x = $image->Scale(width=>"200", height=>"200"); warn "$x" if "$x"; $x = $image->Write("nettienew.tif"); warn "$x" if "$x";


    Here are the errors:
    Exception 420: NoDecodeDelegateForThisImageFormat (nettie.tif) at c:/image.pl line 8.

    Anybody have a suggestion about what might be happening?
      Problem Solved! Image::Magick now running on windows 2000! the problem seems to be synching the different builds of ActiveState Perl, ImageMagick and the PerlMagick module. I had to find an appropriate build of ActiveState Perl, and make sure that the Image::Magic module was the one that the version of ImageMagick I was installing matched. The best way to do the later was to use the version of ImageMagick that downloads the perl module stuff it requires at installation. Here's is how I finally got something to work:

      1) Install Active State Perl 5.8.0 build 806 available HERE
      builds 804 and 807 did not work.

      2) Install the nifty ImageMagick installer-type set-up that provides the Install Perl Magick module option. (ImageMagick-i686-pc-windows.exe)
      Available HERE

      Make sure that
      a) you check the box to install the perl magick stuff
      b) you have your machine connected to the internet. The installer will then install ImageMagick and a command prompt window will then pop-up as the Perl Magick stuff is downloaded from the internet.

      You should then be ready to go.

      Thank you for all of your help!
        Just a Note on the above the file ImageMagick-i686-pc-windows.exe seems to have moved to Here

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found