在CentOS6.5下,PHP: ImageMagick报错:Unable to read the file的解决!

1、程序截图,new Imagick

程序截图,new Imagick

2、浏览器运行时报错:Unable to read the file

浏览器运行时报错:Unable to read the file

3、运行命令:rpm -qa | grep ghostscript,发现没有安装gs软件,运行命令:yum install ghostscript

运行命令:rpm -qa | grep ghostscript,发现没有安装gs软件,运行命令:yum install ghostscript

4、文件上传成功,且成功生成相应的png图片:

文件上传成功,且成功生成相应的png图片

文件上传成功,且成功生成相应的png图片

 

永夜