imagick readImageFile中止脚本

时间:2015-08-18 14:11:38

标签: php imagick

我想在php中用imagick转换图片。

代码:

$fp_pdf = fopen("tmp/test.png", 'rb');
$img = new imagick();
$img->readImageFile($fp_pdf);

我的错误.log:

[Tue Aug 18 15:29:42.364607 2015] [mpm_winnt:notice] [pid 1548:tid 524] AH00428: Parent: child process 3600 exited with status 3221226519 -- Restarting.
PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1681 but version 1680 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
[Tue Aug 18 15:29:42.397611 2015] [mpm_winnt:notice] [pid 1548:tid 524] AH00455: Apache/2.4.10 (Win64) PHP/5.6.4 configured -- resuming normal operations
[Tue Aug 18 15:29:42.397611 2015] [mpm_winnt:notice] [pid 1548:tid 524] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 12:58:29
[Tue Aug 18 15:29:42.397611 2015] [core:notice] [pid 1548:tid 524] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Tue Aug 18 15:29:42.398611 2015] [mpm_winnt:notice] [pid 1548:tid 524] AH00418: Parent: Created child process 1728
PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1681 but version 1680 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
[Tue Aug 18 15:29:42.729644 2015] [mpm_winnt:notice] [pid 1728:tid 468] AH00354: Child: Starting 64 worker threads.

脚本只是中止,我没有得到PHP错误。 [ERR_CONNECTION_RESET]

1 个答案:

答案 0 :(得分:0)

你可以从同一个地方安装Imagick和ImageMagick:

http://windows.php.net/downloads/pecl/deps/ http://windows.php.net/downloads/pecl/snaps/imagick/

哪个版本应该允许安装正确的版本。