错误WriteBlob使用ImageMagick 6.7.9失败 [英] error WriteBlob Failed using ImageMagick 6.7.9
问题描述
我想从pdf文件创建图像。我在Linux服务器
上安装了ImageMagick,并从具有root访问权限的终端成功创建了一个映像。
I want to create an image from a pdf file. I have installed ImageMagick on a Linux server and successfully created an image from a terminal with root access.
命令:
/usr/local/bin/convert http://www.artisticancestry.com/sites/default/files/media/Getting%20Started_7.pdf /public_html/testing.png
但是当我要从php exec()函数执行这个命令时。它显示此类错误
But When i am going to execute this command from php exec() function. It is showing this type of error
错误:
转换:无法打开图片 / public_html / testing-0.png':没有这样的文件或目录@ error / blob.c / OpenBlob / 2642。
/public_html/testing-0.png'@ error / png.c / MagickPNGErrorHandler / 1751。
convert:WriteBlob Failed
error:
convert: unable to open image /public_html/testing-0.png': No such file or directory @ error/blob.c/OpenBlob/2642.
convert: WriteBlob Failed
/public_html/testing-0.png' @ error/png.c/MagickPNGErrorHandler/1751.
有一些权限问题,但不知道哪个文件没有权限。如何找出导致此问题的原因以及如何解决?
There is some permission issue but don't know which file has no permission.How can I find out what is causing this problem and how can I solve it?
推荐答案
这是我的许可问题
chmod -R 777 / dir
chmod -R 777 /dir
/ dir =您要编写图像的目录
/dir = Directory where you want to writing your image
这篇关于错误WriteBlob使用ImageMagick 6.7.9失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!