duanjiong2021 2016-10-10 05:21
浏览 111

ImageMagick无法正常工作

I have tried using steps for installing ImageMagick from How to install ImageMagick for WAMP 2.5 and from Where to find php_imagick.dll for php 5.5.12 for Windows wampserver 2.5?. I am using Windows 10 and WAMP 2.5 with PHP 5.5.12. I install using ImageMagick-7.0.3-3-Q16-x64-dll.exe and have tried using a few of this

  • php_imagick-3.1.2-5.5-nts-vc11-x64
  • php_imagick-3.1.2-5.5-nts-vc11-x64
  • php_imagick-3.2.0b1-5.5-nts-vc11-x64
  • php_imagick-3.4.3rc1-7.0-nts-vc14-x64

All of them still get me Fatal error: Class 'Imagick' not found in C:\wamp\www\test.php on line 19 from testing if imagemagick is working using these codes

<?php
$im = new Imagick();
$im->newPseudoImage(100, 100, "magick:rose");
$im->setImageFormat("png");
$im->roundCorners(5,3);
$type=$im->getFormat();
header("Content-type: $type");
echo $im->getimageblob();
?>

I have put the CORE_RL files into C:\wamp\bin\apache\apache2.4.9\bin and php_imagick.dll to here: C:\wamp\bin\php\php5.5.12\ext\ please help!

  • 写回答

1条回答 默认 最新

  • dongmei1828 2016-11-04 18:15
    关注

    I have been struggling with ImageMagick working on my Wamp Server for a few hours and have finally figured out how to get it working on my Windows 10 system.

    1) Making sure you have the latest Wamp Server on your system.
    2) Download the latest Windows version of ImageMagick from the ImageMagick server http://www.imagemagick.org
    3) Install it and make sure to use the c:\Imagemagick for installation.
    4) Download the latest Pecl files from http://windows.php.net/downloads/pecl/releases/imagick/ select the newest version.
    5) Copy the CORE dll files from that download and put them in the Wamp Server Apache Bin directory.
    6) Copy the php_imagick.dll file from that download and put it into the Wamp Server php ext directory.
    7) Put "extension=php_imagick.dll" into the php.ini file via Wamp Server.
    8) Restart Wamp Server and hopefully it works.

    评论

报告相同问题?

悬赏问题

  • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 虚心请教几个问题,小生先有礼了
  • ¥30 截图中的mathematics程序转换成matlab