简体   繁体   English

在wampserver 3.0.6上安装imagick

[英]Installing imagick on wampserver 3.0.6

I have downloaded php_imagick-3.4.3-5.6-ts-vc11-x64.zip from there 我从那里下载了php_imagick-3.4.3-5.6-ts-vc11-x64.zip

http://pecl.php.net/package/imagick/3.4.3/windows http://pecl.php.net/package/imagick/3.4.3/windows

Unzip and copy php_imagick.dll to the c:\\wamp\\bin\\php\\php5.6.25\\ext (I'm using PHP version 5.6.25) php_imagick.dll解压缩并复制到c:\\wamp\\bin\\php\\php5.6.25\\ext (我使用的是PHP 5.6.25版)

Then I have added extension=php_imagick.dll in the wamp\\bin\\php\\php5.6.25\\php.ini 然后我在wamp\\bin\\php\\php5.6.25\\php.ini添加了extension=php_imagick.dll

restarted server and go to the PHPInfo. 重新启动服务器并转到PHPInfo。 imagick section did not appear 想象部分没有出现

Then I added extension=php_imagick.dll in the wamp\\bin\\apache\\apache2.4.23\\bin\\php.ini have restarted server and got the same result. 然后我在wamp\\bin\\apache\\apache2.4.23\\bin\\php.ini添加了extension=php_imagick.dll ,重新启动了服务器并获得了相同的结果。

通过安装另一个版本ImageMagic来解决问题: ImageMagick-6.9.8-5-Q16-HDRI-x64-dll.exe

Also to add, in case anyone else needs it, you need the corresponding Thread Safe or Non-Thread Safe verison of imagemagick. 另外要添加,如果其他人需要它,你需要相应的线程安全或非线程安全 verison of imagemagick。

To find out which version of PHPyou have, use phpinfo(); 要找出您拥有的PHP版本,请使用phpinfo(); and search for the entry called ' Thread Safety ', which will be enabled if it's thread safe. 并搜索名为“ Thread Safety ”的条目,如果它是线程安全的,将启用该条目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM