Installation of Image Magick on Wamp

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Loveleen
Posts: 5
Joined: 2012-02-07T07:52:02-07:00
Authentication code: 8675308

Installation of Image Magick on Wamp

Post by Loveleen »

I did the following yet the image Magick extension doesn't get loaded

1. I downloaded and installed the binary ImageMagick-6.7.5-3-Q16-windows-dll.exe at c:/imagemagick
2. added to the httpd.conf file
SetEnv MAGICK_HOME c:/imagemagick
3. downloaded the Windows binaries for imagick 2.3.0 compiled with VC6 (threaded) from http://www.sk89q.com/2010/03/vc6-window ... ick-2-3-0/ and placed in the php extension folder.
4. added this line to php.in
extension=php_imagick.dll
5. restarted the wamp server

The wamp tray shows the extension as enabled but apache error log shows the error,

Code: Select all

 'PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.8/ext/php_imagick.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0
    <br />
    <b>Warning</b>:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.8/ext/php_imagick.dll' - %1 is not a valid Win32 application.'
My wamp server version is 2.2

The phpinfo doesnt show the imagick extension to be loaded. Any help would be appreciated.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Installation of Image Magick on Wamp

Post by Bonzo »

I did the same as you in xampp except for not doing step 2/ and in step 3/ I used a dll I found online and it used to worked OK.

Unless you have to have Imagick I would not bother with it and use exec() with the command line options. Imagick does not seem very well supported, documentd or have as many options.
Loveleen
Posts: 5
Joined: 2012-02-07T07:52:02-07:00
Authentication code: 8675308

Re: Installation of Image Magick on Wamp

Post by Loveleen »

Any idea on which Windows binaries should I pick for the extension?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Installation of Image Magick on Wamp

Post by Bonzo »

Have you checked out this site: Mikko's blog
Loveleen
Posts: 5
Joined: 2012-02-07T07:52:02-07:00
Authentication code: 8675308

Re: Installation of Image Magick on Wamp

Post by Loveleen »

Yes, I did but it didnt work
twiitanen
Posts: 2
Joined: 2012-10-03T06:41:45-07:00
Authentication code: 67789

Re: Installation of Image Magick on Wamp

Post by twiitanen »

I too am having issues. I have tried many, many versions, as well as Mikko's suggestions. I would even welcome an older version if I knew which is the correct DLL to use.

Please help. I prefer using the PHP API Imgick();
holdoffhunger
Posts: 7
Joined: 2013-05-28T16:41:06-07:00
Authentication code: 6789

Re: Installation of Image Magick on Wamp

Post by holdoffhunger »

Second! I'm not just having issues with installing ImageMagick on Wamp, but it also destroyed a harddrive on Kubuntu when I tried to update it with it's unusual "dependent packages".

Getting ImageMagick to work anywhere seems to be a tremendous pain. You're lucky you never coded anything in ImageMagick, because then you'd simply have wasted all of your time.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Installation of Image Magick on Wamp

Post by fmw42 »

Perhap http://www.imagemagick.org/Usage/windows/ will give you some ideas. Sorry I am not a Windows user.
Post Reply