gpt4 book ai didi

php - imagemagick convert.exe 错误

转载 作者:行者123 更新时间:2023-12-02 07:06:12 25 4
gpt4 key购买 nike

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

<?php 
exec("convert planets.png planets.jpg");
?>

只显示空白页是行不通的。

我已经安装了 imagemagick,正如它在 phpinfo() 中显示的那样 View here

这里是否还有任何其他配置可以运行该 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 

最佳答案

这就是错误消息很重要的原因。有了它,我们就可以寻找答案。

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

解决方案

你可以

关于php - imagemagick convert.exe 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11702187/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com