问答详情
源自:2-4 给图片添加文字水印—保存和销毁图片

无法输出图片

ie打开显示:

yesGD Version:bundled (2.0.34 compatible)</br>FreeType Support:1</br>FreeType Linkage:with freetype</br>T1Lib Support:</br>GIF Read Support:1</br>GIF Create Support:1</br>JPEG Support:1</br>PNG Support:1</br>WBMP Support:1</br>XPM Support:</br>XBM Support:1</br>JIS-mapped Japanese Font Support:</br><br />
<font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Call to undefined function iamgejpeg() in C:\wamp\www\image\index.php on line <i>34</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0006</td><td bgcolor='#eeeeec' align='right'>373760</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='C:\wamp\www\image\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>0</td></tr>
</table></font>

提问者:lijiyu 2015-08-08 18:37

个回答

  • lijiyu
    2015-08-14 17:04:52

    在输出是添加如下代码就可以了

    ob_clean();
    header("Content-type:".$info['mime']);

  • nancy85
    2015-08-14 16:31:23

    我的也无法显示,怎么回事呢