更新后Imagemagick / ghostscript PDF错误

时间:2014-09-17 17:03:35

标签: php centos imagemagick imagick

运行CentOS 6.5,刚刚使用REMI repos更新了PHP / iMagick,我现在在尝试处理PDF文件时出现此错误:

PDFDelegateFailed `[ghostscript library] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dUseCIEColor "-sOutputFile=/tmp/magick-320807xqpPIxdkvMk%d" "-f/tmp/magick-32080x_2jLbAXRyaJ" "-f/tmp/magick-32080lL2VmTkUoDy7"': -dname= must be followed by a valid token @ error/pdf.c/InvokePDFDelegate/256

我使用PHP 5.4.32运行ImageMagick 6.8.9-7

1 个答案:

答案 0 :(得分:0)

这在ImageMagick 6.8.9-7中出现了某种错误,降级到ImageMagick-last-libs.x86_64 0:6.8.9.0-1解决了这个问题。

如果有人需要使用命令:

yum -y --enablerepo = remi downgrade ImageMagick-last-libs