How to install ImageMagick on Windows 7 (2)

ぐ巨炮叔叔 提交于 2019-11-29 10:15:07

问题


Hopefully, despite similar question titles, this isn't a duplicate issue.

I've installed ImageMagick-6.7.5-6-Q16-windows-dll.exe.

I have php_imagick_dyn-Q16.dll renamed to php_imagick.dll in PHP's ext directory.

I have extension=php_imagick.dll in my php.ini.

I try to run a basic test: php -r "var_dump(class_exists('Imagick'));".

I get this error:

PHP Startup: imagick: Unable to initialise module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options must match.


CLI has stopped working.
Windows can check online for a solution to the problem.
> Check online for a solution and close the program
> Close the program

What have I done wrong?


回答1:


  1. First install : http://imagemagick.org/script/binary-releases.php#windows
  2. Download : http://www.sk89q.com/2010/03/vc6-windows-binaries-for-imagick-2-3-0/
  3. Choose the TS one
  4. Open your php.ini file
  5. Add this line :

    extension=php_imagick.dll

  6. Restart your apache server

    open php_info()

Now your imagick lib is ready to use.

This works for me.



来源:https://stackoverflow.com/questions/9365758/how-to-install-imagemagick-on-windows-7-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!