首页 > 解决方案 > apache bin中的Imagick UnableToLoadModule IM_MOD_RL_png_.dll

问题描述

我正在使用 Windows 操作系统、64 位 PHP 版本 7.4 并启用了线程安全。

我已经从 http://windows.php.net/downloads/pecl/releases/imagick/下载了最新版本的 php_extension选择最新版本。

接下来解压缩 zip 文件并将 dll 复制到 php 安装 ext 文件夹。

在 phpinfo 中,它显示已启用并正在运行。

我从 ImageMagick 服务器http://www.imagemagick.org下载了最新的 Windows 版本的 ImageMagick并将其安装到 D:\ImageMagick-7.0.7-11-vc15-x64 添加了环境路径。

我写了一个简单的代码来测试。它返回错误

$image = new Imagick(); 

// Use newImage function to create new image 
$image->newImage(650, 400, '#FF0000'); 

// Set the image format 
$image->setImageFormat('png'); 

header('Content-type: image/png'); 

// Display the output image 
echo $image; 

UnableToLoadModule 'D:\lara\bin\apache\httpd-2.4.35-win64-VC15\bin\IM_MOD_RL_png_.dll': The specified module could not be found. @ error/module.c/OpenModule/1275 (View: D:\lara\www\eror-io\Modules\Invoices\Resources\views\link.blade.php)

请让我知道为什么会出现此错误。我检查了路径 D:\lara\bin\apache\httpd-2.4.35-win64-VC15\bin\IM_MOD_RL_png_.dll 文件是否存在。

与apache版本有关吗

谢谢

标签: apacheinstallationimagicklaragon

解决方案


推荐阅读