imagick崩溃与PHP 5.3 [英] imagick crash with PHP 5.3
问题描述
我收到此错误:
页面加载时重置了与服务器的连接.
The connection to the server was reset while the page was loading.
仅当我尝试使用ImageMagick加载图像时才会发生这种情况.
This only occurs when I try to load an image using ImageMagick.
<?php
header('Content-type: text/html');
$image = 'some_image.jpg';
/*** a new imagick object ***/
$im = new Imagick();
/*** ping the image ***/
$im->pingImage($image);
/*** read the image into the object ***/
$im->readImage( $image );
/**** convert to png ***/
$im->setImageFormat( "png" );
/*** write image to disk ***/
$im->writeImage( '/tmp/new.png' );
echo 'Image Converted';
?>
vertrigo serv
php 5.3.8
php_imagick_ts.dll
这里显然是相同的问题: http://valokuva.org/?page_id=50
Apparently same problem here: http://valokuva.org/?page_id=50
我可以加载它,phpinfo显示imagick信息,但是当尝试读取图像时Apache崩溃.
I can get it loaded, phpinfo displays imagick information, but when trying to read an image Apache crashes.
对这个问题有任何想法吗?
Any idea about this problem?
推荐答案
存在类似的问题: Imagick构造函数使PHP/CGI崩溃
我今天遇到了同样的问题.您必须安装不超过6.6.4.0的Image Magick版本-下一个版本是使用VC10制作的,该版本似乎与Apache VC9 + PHP5.3.x VC9不兼容.
I've had the same issue today. You have to install version of Image Magick no higher than 6.6.4.0 - next builds are made using VC10 which seems to be incompatible with Apache VC9 + PHP5.3.x VC9.
对此有一些评论: http://valokuva.org/?p=161# comment-20707
您可以在此处获取Image Magick的旧版本: http://image_magick.veidrodis.com/image_magick/binaries/
You can get older releases of Image Magick here: http://image_magick.veidrodis.com/image_magick/binaries/
记住在安装Image Magick之后重新启动Windows
And remember to reboot windows after installing Image Magick
这篇关于imagick崩溃与PHP 5.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!