duanlan4801 2010-06-29 19:21
浏览 48

PHP Exec函数不运行imagemagick shell命令,但从shell正确运行相同的脚本。

I am running following command through EXEC PHP function. I am creating JPG from PDF file from ImageMagick Library.

Command:

/usr/local/bin/convert -density 500 '/home/pop/www/pdf/pdfSample.pdf' -resize 18% '/home/pop/www/images/pdfSample.jpg'

I am getting following Responses from EXEC PHP function.

Output Array:

Array
(
    [0] => CRIT: rangecheck in .setuserparams
    [1] => Operand stack:
    [2] =>     --nostringval--  --nostringval--  --nostringval--
)

Exec Response: 1

Note: I have assigned 777 rights to PDF and IMAGES folder, but still getting same issue. I am running above command properly from shell.

Should I assign root owner group to PDF and IMAGES folder?

Please help me for this problem.

Thanks, Raheel

  • 写回答

1条回答 默认 最新

  • douzhao5656 2010-06-30 02:15
    关注

    After a few minutes poking at Google, the top search results suggests that "CRIT: rangecheck in .setuserparams" is an error in ImageMagick's convert program frequently caused by missing or ancient versions of Ghostscript and/or Freetype.

    You'll want to get those installed and/or brought up to date.

    评论

报告相同问题?