extension_loaded('imagick') or die('imagick not loaded');
$image = new imagick('../2.jpg');
$image->readimageblob($image);
我在本地执行这段代码 提示这个错误
php fatal error: uncaught exception 'imagickexception' with message 'no decode delegate for this image format `/var/tmp/magick-97177oi2u6p8xjcje' @ error/constitute.c/readimage/552' in /users/test/img/img.php:4stack trace:
0 /users/test/img/img.php(4): imagick->__construct('../2.jpg')1 {main}thrown in /users/test/img/img.php on line 4
我的 imagick 已经安装了
请各位帮忙看看是什么问题
回复内容: extension_loaded('imagick') or die('imagick not loaded');
$image = new imagick('../2.jpg');
$image->readimageblob($image);
我在本地执行这段代码 提示这个错误
php fatal error: uncaught exception 'imagickexception' with message 'no decode delegate for this image format `/var/tmp/magick-97177oi2u6p8xjcje' @ error/constitute.c/readimage/552' in /users/test/img/img.php:4stack trace:
0 /users/test/img/img.php(4): imagick->__construct('../2.jpg')1 {main}thrown in /users/test/img/img.php on line 4
我的 imagick 已经安装了
请各位帮忙看看是什么问题
imagemagick报错说“no decode delegate for this image format”的意思就是,你装了imagemagick,但你装的imagemagick无法解码你要打开的文件(jpeg)
注意看你截图里的imagemagick supported formats,里面没有jpeg
我想大概是你配置安装imagemagick时没有加'--with-jpeg=yes吧……