可能重复:
Want to render an image without saving it to disk using PHP GD libs
The image cannot be displayed because it contains errors.PHP - 从IMG SRC调用一个函数
我想调用一个函数,使一个图像trought的IMG SRC标签。可能吗?
我的意思是:不是呼叫<img src="path/file.php" />
的我想要做像出头<img src="function()" />
从技术上讲,可以使用'数据:'URI的,但它是一个可怕的想法。用什么@Sjoerd建议 – 2011-03-11 16:05:38
看到一个可能的解决方案在http://stackoverflow.com/questions/3385982/the-image-cannot-be-displayed-because-it-contains-errors/3386050#3386050 – Gordon 2011-03-11 16:07:38