Imagick用php显示空白图像

时间:2013-05-14 09:28:08

标签: php

我安装了imagick并检查以确保该类存在等。我可以使用它来计算tiffs和其他东西中的图像。但是,我不能让它显示图像。我使用以下代码:

header('Content-type: image/JPG');

$image = new Imagick(' ur to my jpg here ');

$image->thumbnailImage(100, 100);

echo $image;

但它显示出一张空白图片。当我查看生成的HTML代码时,我得到了这个:

<html>
<body style="margin: 0px;">
<img style="-webkit-user-select: none" src=" url to this page imagechange.php">
</body>
</html>

有人可以解释为什么没有显示图像吗?在HTML上方显示图像src作为我正在使用的PHP页面,而不是图像。

0 个答案:

没有答案