您好,欢迎访问一九零五行业门户网

使用GD2函数在照片上添加文字出现异常

使用gd2函数在照片上添加文字出现错误~
出现这样的错误怎么解决啊,试了好多办法都不行。!
warning:  imagecreatefromjpeg(/images/photo.jpg): failed to open stream: no such file or directory in c:\apache24\htdocs\excerse\index.php on line 3
warning:  imagecolorallocate() expects parameter 1 to be resource, boolean given in c:\apache24\htdocs\excerse\index.php on line 4
warning:  imagettftext() expects parameter 1 to be resource, boolean given in c:\apache24\htdocs\excerse\index.php on line 7
warning:  imagejpeg() expects parameter 1 to be resource, boolean given in c:\apache24\htdocs\excerse\index.php on line 8
warning:  imagedestroy() expects parameter 1 to be resource, boolean given in c:\apache24\htdocs\excerse\index.php on line 9
------解决思路----------------------
warning: imagecreatefromjpeg(/images/photo.jpg): failed to open stream: no such file or directory in c:\apache24\htdocs\excerse\index.php on line 3
failed to open stream: no such file or directory 打开失败:没有这样的文件或目录
------解决思路----------------------
提示图片不存在,获取不到图片资源,接下来都报错了
检查下文件路径
------解决思路----------------------
用ide运行会有偏差的,还是用浏览器运行吧。浏览器运行没问题就行。
其它类似信息

推荐信息