PHP, ImageMagick, and MagickWand on Windows

by justin carlson on 12/10/2008
Do you want to setup ImageMagick and/or MagickWand on Windows? Here's what I did to get it working.

I'm running PHP 5.2.6 on a Windows XP machine with Apache 2.0.x

Install ImageMagick:
http://www.imagemagick.org/download/bin ... static.exe
http://www.imagemagick.org/download/bin ... ws-dll.exe

Download whichever ImageMagick dll you want ( I'm using : php_imagick_dyn-Q8.dll )
http://valokuva.org/?page_id=50

Download a MagickWand dll from here or here ( I'm using: php-5.2.4_magickwand_q8_st.dll )

Put those two dll files in your PHP ext directory. Hopefully that's C:\PHP\ext or a path without spaces.

Edit your php.ini and add these lines at the bottom:

[Image Magic and Wand]
extension=php_imagick_dyn-Q8.dll
extension=php-5.2.4_magickwand_q8_st.dll

Restart apache and enjoy!

PS, in your phpinfo(); you should see:

imagick
imagick module    enabled
imagick module version     2.2.1-dev
imagick classes     Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version     ImageMagick 6.4.7 2008-12-08 Q8 http://www.imagemagick.org
ImageMagick copyright     Copyright (C) 1999-2009 ImageMagick Studio LLC
ImageMagick release date     2008-12-08
ImageMagick Number of supported formats:     204

magickwand

MagickWand Backend Library    ImageMagick
MagickWand Extension Version     1.0.5
ImageMagick support     enabled
ImageMagick version     ImageMagick 6.3.5 09/21/07 Q16 http://www.imagemagick.org
ImageMagick QuantumRange (MaxRGB)     65535

Trackback

Trackback URL for this entry: http://www.tehuber.com/trackback.php?id=20081211105644786

No trackback comments for this entry.
PHP, ImageMagick, and MagickWand on Windows | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.