$path=getcwd();
$rawstring = $_POST['img_data'];
$malestr = str_replace("data:image/jpeg;base64,", "", $rawstring);
$img = new Imagick();
$img->readImageBlob($malestr);
$img->writeImage($path."/media/import/new.jpg");
这是我的 Imagick 函数,我正在尝试使用 base64 编码数据编写图像。它的抛出错误。
“此图像格式没有解码委托”