PHP PDF转PNG图片报错 FailedToExecuteCommand `'gs' ... error/ghostscript-private.h/ExecuteGhostscriptCommand/74
super
2023-01-09 21:49
![views](/static/super/images/icon/evaluate-9a.png)
PDF转PNG时报错
FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -dPrinted=false '-sOutputFile=/tmp/magick-ycaVLWAMCOBzFmONS_8pubFrVi3t5RA0%d' '-f/tmp/magick-DR9w38dmvQlAAnbWdlK17JLh-k2OWGvo' '-f/tmp/magick-838A8DoG3jGWOEG7SBeQzW62GnduMBqM'' (32512) @ error/ghostscript-private.h/ExecuteGhostscriptCommand/74
![](/uploads/article/20230109/9b2c0662b30d06777bd3ba9d5102f4b3.png)
解决办法:安装ghostscript
CentOS安装 ghostscript
0 条讨论