Cannot install MagickWand (Windows)

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
citruscaesar

Cannot install MagickWand (Windows)

Post by citruscaesar »

Hey, I was wondering if anyone could help me with my issue-

I am trying to install Imagemagick on my computer with the MagickWand extension so that I can manipulate images using PHP. I am using XAMPP with the Apache web server. Unfortunately, I have tried a vast number of ways to get the MagickWand extension to work but I am not getting anywhere!

I have Windows 7 and PHP Version 5.3.1

The currently installed version of ImageMagick is 6.6.3 which is installed to C:/xampp/ImageMagick-6.6.3-Q16 from http://www.imagemagick.org/download/binaries/ (the file being ImageMagick-6.6.3-0-Q16-windows-dll.exe)

I have done the command prompt test from the installation to ensure that it is installed.

In C:\xampp\php\ext I have added php_imagick.dll (from http://www.sk89q.com/downloads/imagick/ ... 626-TS-VC6)
and also php-5.2.4_magickwand_dyn.dll (from http://www.dirk.sh/dirk/magickwand/).

And in C:\xampp\php\php.ini I have added

extension=php_imagick.dll
extension=php-5.2.4_magickwand_dyn.dll

and by default:

extension_dir = "C:\xampp\php\ext"

When I run phpinfo() and the Apache server is running, I get the following information for Imagemagick:

imagick module enabled
imagick module version 2.3.0
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.6.3-0 2010-07-01 Q16 http://www.imagemagick.org
ImageMagick copyright Copyright (C) 1999-2010 ImageMagick Studio LLC
ImageMagick release date 2010-07-01
ImageMagick Number of supported formats: 214
ImageMagick Supported formats [EDIT: ALL OF THE FORMATS]

from which I assume it is installed, but I have yet to get anything for MagickWand, which apparently you get a section for if you have correctly installed it. This has always been the case even though I have tried a big combination of different Imagemagick versions and MagickWands.dll's.

I am unsure about the use of dynamic and static in their descriptions, and whether I need a certain version, used with the correct MagickWand extension for it to work.

When I try and call an ImageMagick function in php, I just get a message along the lines of function not found (e.g. for NewMagickWand).

I have added
C:\xampp\ImageMagick-6.6.3-Q16;
to CLASS PATH variables in environment variables,

and in C:\xampp\apache\conf\httpd.conf
I have added SetEnv MAGICK_HOME "C:\xampp\ImageMagick-6.6.3-Q16", which is registered in PHP Variables in phpinfo().

If it helps, in the Apache error log C:\xampp\apache\logs\error.log, there are multiple instances of the error:

<b>Warning</b>: PHP Startup: magickwand: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in <b>Unknown</b> on line <b>0</b><br />
[Fri Jul 16 19:04:09 2010]

I'm thinking that the module and PHP being compiled differently might be the issue. How is this resolved?

Do I need to install a module, e.g. .so?

If anyone could help me, it would be much appreciated! Please let me know if you need any more info.
citruscaesar

Re: Cannot install MagickWand (Windows)

Post by citruscaesar »

Hi, I apologise I put this in the wrong section (should be in MagickWand for PHP), would it be possible for an admin to move it? ^-^ thanks
Post Reply