有什么想法可以修复这个问题吗?
ImagickException: not authorized `/tmp/magick-1552lvf2nIjaqx1W' @ error/constitute.c/ReadImage/412
我以为这是权限问题,所以只是为了测试,我将我的/tmp目录设置为777。没有改变。这让我疯狂了。
命令:
<?php
$image = new \Imagick();
$image->readImageBlob('<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . $graph);
MAGICK_TMPDIR
到其他的位置,以便你的脚本/CGI/程序可以写入吗? - Mark Setchell