Home > Backend Development > PHP Tutorial > window php imagick 保存图片不成功,该怎么解决

window php imagick 保存图片不成功,该怎么解决

WBOY
Release: 2016-06-13 12:32:34
Original
1230 people have browsed it

window php imagick 保存图片不成功
问题: 在 windows下  imagick::writeImage()成功图片不成功,也没有返回值  不知道为什么?但是在linux下是可以成功成功的。
但是
$this->image = new Imagick($path);//$path   保存图片的路径;
......(设置图片的一些属性,代码省略)
方法一:$this->image->writeImage($path);         不成功
方法二:file_put_contents($path, $this->image);  成功

imagick版本:ImageMagick-6.8.7-7-Q16-x86-dll.exe
php版本:5.4.16


求大神告知原因

php imagick 成功图片
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template