ImageMagick已安装,但无法运行
我是 ImageMagick 菜鸟,所以请记住这一点。
我的主人说 ImageMagick 已安装,他们是对的。当通过 SSH 连接到服务器时,convert -version 返回版本和所有内容。但我无法让它真正发挥作用。
我尝试过使用 MagickWand 和 Imagick,但两者均未安装,因为我收到 class 'Imagick' not found
错误或类似错误。但即使我尝试:
$input = "image.jpg";
$output = "image2.jpg";
$convert = "/usr/local/bin/convert";
$command = "$convert $input $output";
exec($command, $return);
也没有创建图像。有什么想法吗?我可以安装 Imagick 或 MagickWand 吗?我对我的主人没有很大的特权,所以我认为这不是一个选择。我做错了什么?
免责声明:我很快就要睡觉了,所以如果我稍后才回复任何答案,那就是原因。如果我确实得到解决问题的答案,我一定会接受。
I'm an ImageMagick noob, so bear that in mind.
My host says ImageMagick is installed, and they're right. convert -version returns the version and everything when SSH'd into the server. But I can't get it to actually work.
I have tried using MagickWand and Imagick, but both are not installed because I get the class 'Imagick' not found
error or similar. But even when I try:
$input = "image.jpg";
$output = "image2.jpg";
$convert = "/usr/local/bin/convert";
$command = "$convert $input $output";
exec($command, $return);
No image is created. Any ideas? Can I install Imagick or MagickWand? I don't have great privileges with my host, so I figure that is not an option. What am I doing wrong?
Disclaimer: I'm off to bed soon, so if I don't reply to any answers until later, that's why. If I do get an answer that solves the problem, I will definitely accept it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从来没有真正弄清楚这一点。我最终更换了主机,因为我的主机有问题并且没有帮助。
I never really figured this one out. I ended up switching hosts because my host was being problematic and unhelpful.