如何使用Wampserver 3.0.0 64安装ImageMagick? [英] How to install ImageMagick with Wampserver 3.0.0 64?

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

问题描述

我失去了一天试图解决这个问题,在不同时间获得此图像格式没有解码代理和无法找到指定的模块错误。我可以在这些问题上找到的信息是在版本号方面的日期,许多包括从PECL发行版覆盖ImageMagick安装的dll或将dll复制到windows / system32中的说明;我不想做的两件事。

I lost a day trying to figure this out, at various times getting "no decode delegate for this image format" and "The specified module could not be found" errors. The information I could find on these problems was dated in terms of version numbers, and many included instructions like overwriting the ImageMagick-installed dlls from the PECL distribution or copying dlls into windows/system32; two things I didn't want to do.

环境:Windows 10

Wampserver:3.0.0,Apache / 2.4.17(Win64 )PHP / 5.6.16

Environment: Windows 10
Wampserver: 3.0.0, Apache/2.4.17 (Win64) PHP/5.6.16

推荐答案


  1. 下载并安装最新的ImageMagick:ImageMagick-7.0 .2-0-Q16-x64-dll.exe

  1. Downloaded and installed latest ImageMagick: ImageMagick-7.0.2-0-Q16-x64-dll.exe

http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc1 /

将php_imagick.dll解压缩到[wampserver目录] \bin\php\php5.6.16\ext

Unpacked php_imagick.dll into [wampserver directory]\bin\php\php5.6.16\ext

将扩展名= php_imagick.dll添加到[wampserver目录] \bin \apache \apache2.4.17\bin\php.ini

Added extension=php_imagick.dll to [wampserver directory]\bin\apache\apache2.4.17\bin\php.ini

得到此图像格式没有解码委托错误,但至少想象出现在phpinfo()中我可以看到php_imagick.dll是用ImageMagick编译的6.9.3- 7 Q16 x64。事先没有明显的方法知道这一点。

Got "no decode delegate for this image format" error, but at least imagick showed up in phpinfo() where I could see that php_imagick.dll was compiled with ImageMagick 6.9.3-7 Q16 x64. There was no obvious way to know this beforehand.

http://ftp.icm.edu.pl/packages/ImageMagick/binaries/ (ImageMagick有从他们的网站上删除了这个包。)

Downloaded ImageMagick-6.9.3-7-Q16-x64-dll.exe from http://ftp.icm.edu.pl/packages/ImageMagick/binaries/ (ImageMagick has removed this package from their site).

卸载了ImageMagick-7.0.2-0-Q16-x64,安装了ImageMagick-6.9.3-7-Q16- x64到c:\ ImageMagick,将c:\ ImageMagick添加到PATH(在前面,以避免与windows convert.exe冲突)。

Uninstalled ImageMagick-7.0.2-0-Q16-x64, installed ImageMagick-6.9.3-7-Q16-x64 to c:\ImageMagick, added c:\ImageMagick to PATH (in front, to avoid collision with windows convert.exe).

验证了所有内容确定:

$image = new Imagick();
$image->readImage([path to my jpeg]);

$wm = new Imagick();
$wm->readImage([path to my watermark png]);

$image->compositeImage($wm, imagick::COMPOSITE_OVER, 5, 5);

header("Content-Type: image/jpeg");
echo $image;


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

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