imagick 模块出现问题 - PHP
我的 image magick php 模块中有一个奇怪的错误。
ImagickException [ 1 ]: Postscript delegate failed '/tmp/magick-XXxIARsr': wd7C.cache @ error/pdf.c/ReadPDFImage/638
从看来这是授权问题。
我在apache 中有suphp 和suexec。我认为缓存路径有问题。但我在 configure.xml
文件中更改了它,路径仍然相同。
你有什么想法吗?
I have a strange error in the image magick php module.
ImagickException [ 1 ]: Postscript delegate failed '/tmp/magick-XXxIARsr': wd7C.cache @ error/pdf.c/ReadPDFImage/638
From what it seems it's a problem with authorization.
I have suphp and suexec in apache. I think there is a problem with the cache path. but i changed it in the configure.xml
file and the path is still the same.
Do you have any idea ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Imagick 中的“代表”只是 imagick 开始处理一些它自己无法处理的文件格式的程序。就像你的情况一样 - imagick 没有内置的 PDF 阅读器,它依赖 GhostScript (我相信)来渲染它们。您很可能没有安装 GhostScript/GhostView,或者 PDF 中存在一些导致 GhostScript 崩溃的问题 - 例如使用非嵌入的 Windows 字体。
"delegates" in Imagick-speak are just programs that imagick starts to deal with some file formats it cannot process on its own. As in your case - imagick does not have a built-in PDF reader, it relies on GhostScript (I believe) to render those. Most likely you either don't have GhostScript/GhostView installed or there is some problem in the PDF that freaks out GhostScript - such as using non-embedded windows fonts.