imagemagick convert.exe错误

use*_*763 2 php imagemagick

我的代码将planets.png转换为planets.jpg

<?php 
exec("convert planets.png planets.jpg");
?>
Run Code Online (Sandbox Code Playgroud)

哪个不起作用只是显示空白页面.

我已经安装了imagemagick,因为它在phpinfo()中显示在这里查看

此处还有其他任何配置来运行该imagemagick代码.

错误信息

[Sat Jul 28 20:16:11 2012] [error] [client 127.0.0.1] PHP 1. {main}() D:\\wamp\\www\\test\\into.php:0 Invalid Parameter - planets.jpg 
Run Code Online (Sandbox Code Playgroud)

Elz*_*ugi 8

这就是为什么有错误消息很重要的原因.有了它,我们可以搜索答案.

您无意中运行了名为convert.exe的Microsoft Windows程序,而不是同名的ImageMagick程序.Windows convert.exe程序用于将系统启动盘从MS-DOS"FAT"格式转换为NTFS格式.因此,它只能在系统的生命周期中使用一次.资源

解决方案

您可以