ImageMagick无法正常工作 [英] ImageMagick not working

查看:66
本文介绍了ImageMagick无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用步骤从安装ImageMagickWAMP 2.5

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

所有这些仍然让我致命错误:通过测试imagemagick是否正在使用这些代码,在第19行的C:\ wamp \ www \ test.php中找不到类'Imagick'

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();
?>

我已将CORE_RL文件放入C:\ wamp \ bin \ apache \ apache2.4.9 \ bin和php_imagick.dll移至此处:C:\ wamp \ bin \ php \ php5.5.12 \ ext \请帮忙!

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!

推荐答案

我在ImageMagick的Wamp Server上苦苦挣扎了几个小时,终于找到了使它在Windows 10系统上运行的方法.

1)确保您的系统上装有最新的Wamp Server.
2)从ImageMagick服务器下载最新的Windows版本的ImageMagick
http://www.imagemagick.org
3)安装它,并确保使用c:\​​ Imagemagick进行安装.
4)从 http://windows.php.net/downloads下载最新的Pecl文件/pecl/releases/imagick/选择最新版本.
5)复制该下载文件中的CORE dll文件,并将其放在Wamp Server Apache Bin目录中.
6)复制该下载文件中的php_imagick.dll文件,并将其放入Wamp Server php ext目录中.
7)通过Wamp Server将"extension = php_imagick.dll"放入php.ini文件.
8)重新启动Wamp Server,希望它能正常工作.

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.

这篇关于ImageMagick无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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