我正在尝试使用 Imagemagick (实际上是 PHP 的Imagick http://www.php.net/manual/en/class.imagick.php)创建并输出(提供)图像,而不先将其保存到磁盘。
目前我必须保存文件然后使用维罗特上传 http://www.verot.net/php_class_upload.htm类来服务于图像。
(Apache 2 服务器,PHP5)
当然。这应该适合你:
$image = new Imagick();
// Do your image creation stuff. Make sure to set $image->setImageFormat();
header('Content-Type: image/filetype'); // Change filetype
echo $image;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)