Can't make Imagick work with PHP (in Windows)
Posted: 2009-11-05T06:04:40-07:00
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.
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.