1

I am trying to get Imagick working; My development environment is:

  • Windows 2008 Server
  • II7
  • PHP 5.3.10
  • Imagick is installed (I hope properly)

I:

  • Checked if the class exists, and it does. (if (class_exists('Imagick')) {})
  • Checked if I can create an Imagick obj, creates object (new Imagick();)
  • Applied the method and that worked too! ($image ->setResolution(72, 72);)

But, whenever I try to work with any image I have in the folder, I get a 500 - Internal server error.

Any one of these scripts will generate a 500 error:

$image = new Imagick('images/logo.jpg');

or

$image ->readImage("images/logo.jpg");

or anything that involves accessing an image from a folder.

4

2 回答 2

0

在创建新的 Imagick 对象时尝试添加图像的完整路径

$image = new Imagick('/full/path/to/images/logo.jpg');
于 2012-10-04T16:35:09.040 回答
0

我在共享托管服务上也遇到了类似的问题。

我需要从包含的库列表中取消选中 GD 图形库,因为 GD 和 Imagick 之间存在内部冲突。

于 2016-06-06T05:10:32.740 回答