Can't make Imagick work with PHP (in Windows)

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
calsoft

Can't make Imagick work with PHP (in Windows)

Post by calsoft »

Configuration: Win XP / PHP 5.3.0 / Apache 2.2.8

We wanted to use imagick class library to create images out of PDF on the fly. With the following steps, I can't make it work:

1) Downloaded “ImageMagick-6.5.4-2-Q16-windows-dll.exe” from the link “http://imagemagick.org/script/binary-re ... hp#windows” and installed in the directory “C:\imagemagick”.

2) Downloaded “php_imagick.dll” from the link “http://valokuva.org/outside-blog-conten ... v/vc9_zts/” and I placed this DLL under my extension folder (“C:\Program Files\PHP\ext”).

3) Added “php_imagick.dll” reference in the php.ini (extension=php_imagick.dll).

4) Restarted the apache service.

5) Checked phpinfo(), imagick library is not present!! Following error is thrown in the apace error log,

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_imagick.dll' - The specified procedure could not be found.\r\n in Unknown on line 0


I think the problem could be the imagemagick version and php_imagick.dll, that may not be compatible with PHP 5.3.0. We also tried several other versions, but they result in errors as well!

Please advise.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Can't make Imagick work with PHP (in Windows)

Post by Bonzo »

I had a similar problem and luckly I found an old dll from another PC that worked OK. It would be helpful if there were old dll versions avialable.
Post Reply