将 ImageMagick 安装到 Xampp/Windows 7

2022-01-14 00:00:00 dll xampp php imagick apache

当我从 cmd 测试 ImageMagick 时它正在工作,但是当我将它用于 Xampp 并重新启动它时,我收到的错误消息是:httpd.exe-Entry Point Not Found.无法在动态链接库 CORE_RL_wand_.dll 中找到过程入口点 MagickGetImageGravity.

ImageMagick is working when I test it from cmd but when using it for Xampp and restarting it then the error message I receive is:httpd.exe-Entry Point Not Found. The procedure entry point MagickGetImageGravity could not be located in the dynamic link library CORE_RL_wand_.dll.

第二条消息是 PHP StartUp: Unable to load dynamic library C:xamppphpextphp_imagick.dll- The specified procedure could not be Found.

The second message is PHP StartUp: Unable to load dynamic library C:xamppphpextphp_imagick.dll- The specified procedure could not be Found.

我很确定第二个错误消息是由第一个错误引起的.可能是错误的dll.我在运行 PHP 5.3.5 和 Apache 2.2.17 的 Windows 7 64 位上.谢谢

I'm pretty sure second error message is caused by first error up top. Probably wrong dll. I'm on Windows 7 64 BIT running PHP 5.3.5 and Apache 2.2.17. Thanks

推荐答案

我的参考是这个 page

使用 VC9 (Visual Studio 2008) 编译的 ImageMagick 6.8.0 二进制文件.我注意到 ImageMagick 的官方版本现在是 Visual Studio 2010,它不适用于使用 2008 编译的 PHP.请参阅 phpInfo() 并搜索 compiler 和 php version.

ImageMagick 6.8.0 binaries compiled with VC9 (Visual Studio 2008). I noticed that the official ImageMagick builds are now Visual Studio 2010 and that wouldn’t work well with PHP compiled with 2008. see phpInfo() and search for compiler and php version.

二进制文件的下载链接在这里:imagick-php54-php53.tgz

The download link for the binaries is here: imagick-php54-php53.tgz

我下载这个文件夹并将php54 -> php_imagick_ts.dll 复制到xamppphpext

I download this folder and copy php54 -> php_imagick_ts.dll to xamppphpext

我的 PHP 版本是:PHP 版本 5.4.4

My PhP Version is : PHP Version 5.4.4

然后将其重命名为 php_imagick.dll.最后重启你的 appache 服务器.

then rename it to php_imagick.dll. At the end restart your appache server.

相关文章