$image = new \Think\Image(\Think\Image::IMAGE_IMAGICK,'./Public/walle.jpg');
$width = $image->width(); // 返回图片的宽度
$height = $image->height(); // 返回图片的高度
echo $height;执行出错Class 'Imagick' not found
错误位置
FILE: D:\wamp\www\blog6\ThinkPHP\Library\Think\Image\Driver\Imagick.class.php LINE: 48
Imagick.class.php 48行的内容为:
$this->img = new \Imagick(realpath($imgname)); 最佳答案