<?php
header('Content-type: image/jpeg');
$image = new Imagick('image.jpg');
// If 0 is provided as a width or height parameter,
// aspect ratio is maintained
$image->thumbnailImage(100, 0);
echo $image;
?>
给出错误图像“http://localhost/test/into.php”无法显示,因为它包含错误。请解决这个问题?