imagemagick convert.exe错误 [英] imagemagick convert.exe error
问题描述
我的代码将planets.png转换为planets.jpg
My code to convert planets.png to planets.jpg
<?php
exec("convert planets.png planets.jpg");
?>
这只是显示空白页面。
我安装了imagemagick,因为它在phpinfo()中显示查看此处
i have installed imagemagick as it is showing in phpinfo() View here
此处还有其他任何配置来运行该imagemagick代码。
Is here any other configuration remaining to run that imagemagick code.
错误消息
[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
推荐答案
这就是为什么有错误信息很重要的原因。有了它,我们可以搜索答案。
This is why is important to have the error message. With it we can search for answers.
您无意中运行了名为convert.exe的Microsoft Windows程序,而不是同名的ImageMagick程序。 Windows convert.exe程序用于将系统启动盘从MS-DOSFAT格式转换为NTFS格式。因此,它只能在系统的使用寿命中使用一次。 来源
You have inadvertently run the Microsoft Windows program called convert.exe, rather than the ImageMagick program of the same name. The Windows convert.exe program is used to convert a system boot disk from MS-DOS "FAT" format to NTFS format. As such it can only be used one time in the life of a system. Source
你可以
- 重命名MS convert.exe或ImageMagick convert.exe
- 修改你的PATH,将ImageMagick的convert.exe置于MS convert.exe之前
- 编辑你的Windows注册表,如http://savage.net.au/ImageMagick/html/install-convert.html
- rename either the MS convert.exe or the ImageMagick convert.exe
- revise your PATH to put ImageMagick's convert.exe ahead of MS convert.exe
- edit your Windows Registry as explained in http://savage.net.au/ImageMagick/html/install-convert.html
这篇关于imagemagick convert.exe错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!