如何为WAMP 2.5安装ImageMagick [英] How to install ImageMagick for WAMP 2.5

查看:116
本文介绍了如何为WAMP 2.5安装ImageMagick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WAMP没有安装ImageMagick PHP扩展,如何手动安装?我发现的所有教程都显得过时且太混乱。

解决方案

我让ImageMagick在Windows 8.1上运行WAMP 2.5。这就是我做的。


  1. 在这里下载最新的ImageMagick:
    http://imagemagick.org/script/download.php#windows


  2. 在此处安装(默认情况下应该勾选,但请确保在安装时勾选将应用程序目录添加到系统路径):
    C:\ imagemagick


  3. 转到最新创建的文件夹并从此处下载最新的zip文件(x64或x86与您的ImageMagick安装文件相匹配):
    http://windows.php.net/downloads/pecl/releases/imagick/


  4. 从该文件中提取php_imagick.dll到这里:
    C:\ wamp \bin\php \php5.5.12 \\\ / p>


  5. 从这里打开文本编辑器中的php.ini文件
    C:\ wamp \bin \apache \ apache2.4.9 \\ bin \


  6. 搜索注释行Windows Extensions并在扩展名列表下(对我来说,最后一行是extension = php_pdo_sqlite.dll)add:
    extension = php_imagick.dll


然后重新启动计算机和ImageMagick应该可以工作,它至少对我有用。


WAMP does not come with ImageMagick PHP extension installed, how do I install it manually? All the tutorials I have found seem outdated and too confusing.

解决方案

I got ImageMagick to work on WAMP 2.5 on Windows 8.1 . Here's what I did.

  1. Download the latest ImageMagick here: http://imagemagick.org/script/download.php#windows

  2. Install it here (It should be ticked by default, but make sure you tick the "Add application directory to your system path" when installing): C:\imagemagick

  3. Go to the latest folder created and download the latest zip file from here (with x64 or x86 matching your ImageMagick install file): http://windows.php.net/downloads/pecl/releases/imagick/

  4. Extract the php_imagick.dll from that file to here: C:\wamp\bin\php\php5.5.12\ext\

  5. Open php.ini file in text editor from here C:\wamp\bin\apache\apache2.4.9\bin\

  6. Search for commented line "Windows Extensions" and under the extensions list (for me the last one is extension=php_pdo_sqlite.dll) add: extension=php_imagick.dll

Then RESTART your computer and ImageMagick should work, it did for me at least.

这篇关于如何为WAMP 2.5安装ImageMagick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆