可能重複:
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