当前位置:   article > 正文

centos 安装 Imagick 执行转换为 图片报错_fatal error: uncaught exception 'imagickexception'

fatal error: uncaught exception 'imagickexception' with message 'failedtoexe

需要确定 Imagick 是否安装成功

如果转图片遇到下列问题

发现报错

Fatal error: Uncaught ImagickException: FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r120x120' -dPrinted=false '-sOutputFile=/tmp/magick-l0e-FhSxrXhKm2cTlBQvPiprzQbFGNc0%d' '-f/tmp/magick-zeTs6dTm6x80rx-VgRoLgOJJ79cd1VS4' '-f/tmp/magick-N5U8Cf6BSOtsmqeOpKG3zTHQk6Jep5y9'' (32512) @ error/ghostscript-private.h/ExecuteGhostscriptCommand/74 in /www/wwwroot/book.51zuso.com/test.php:17 Stack trace: #0 /www/wwwroot/book.51zuso.com/test.php(17): Imagick->readimage() #1 {main} thrown in

可以尝试安装ghostscript 试下

yum install ghostscript

安装后,发现不在报此错误了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/841720
推荐阅读
相关标签
  

闽ICP备14008679号