2014-12-10 21:58
浏览 46


Im developing and app in magento in the following way, the a downloadble product its uploaded, the i want to use imagick php and ghostcript to take the first page of pdf and put into the product thumbnail image.

I made a local integration with ghostscript and imagick php on local server using wamp with this code i cant convert the first page

exec("convert test.pdf[0] image.jpg ") ; but when i introduce this code on magento i have the following error on apache

[Wed Dec 10 16:07:16.414295 2014] [access_compat:error] [pid 6528:tid 900] [client] AH01797: client denied by server configuration:magento/app/etc/local.xml convert.exe: unable to open image image.jpg': No such file or directory @ error/blob.c/OpenBlob/2638. convert.exe: no images definedimage1112.jpg' @ error/convert.c/ConvertImageCommand/3044.

Could some one give a hand to resolve that

Thanks in advance !

图片转代码服务由CSDN问答提供 功能建议

我用以下方式在magento中开发和应用,上传了一个可下载的产品,我想用imagick php和ghostcript采取pdf的第一页并放入产品缩略图。

我使用wamp 在本地服务器上进行本地与ghostscript和imagick php的集成我无法使用 转换第一页

exec(“convert test.pdf [0] image.jpg”); 但是当我在magento上引入这个代码时,我在apache上有以下错误

[Wed Dec 10 16:07:16.414295 2014] [access_compat:error] [pid 6528:tid 900] [ 客户端127.0.0.1:6737] AH01797:客户端被服务器配置拒绝:magento / app / etc / local.xml convert.exe:无法打开图像 image.jpg':没有这样的文件或目录@ error / blob .c / OpenBlob / 2638。 convert.exe:没有定义图像 image1112.jpg'@ error / convert.c / ConvertImageCommand / 3044。

有人会给出一个 用来解决这个问题


  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doulun9534 2014-12-30 02:35

    The exec statement must be inside a function to work properly

    打赏 评论

相关推荐 更多相似问题