图像库 - 图像不显示 [英] image gallery- image not displaying
本文介绍了图像库 - 图像不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好吧我在服务器上创建了一个文件夹,并将图像文件上传到它...图像文件的链接或图像的路径上传到数据库中的''image_path'',现在我想要的系统读取路径并调整其大小以生成缩略图并将其显示在浏览器上。
但代码显示空白
展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号
< blockquote>所以wat shud它是什么? plz tell
解决方案
imagecopyresized()返回布尔值,而不是图像资源
imagejpeg()期望
< blockquote>所以wat shud它是什么? plz tell
我甚至尝试过使用imagecopyresampled()仍然是同样的事情
ok i have a folder made on the server and uploaded image files to it...the link to the image file or rather the path to the image is uploaded in the database in ''image_path'' , now i want that the system read the path and resize it to generate a thumbnail and display it on the browser.
but the code is showing blank
Expand|Select|Wrap|Line Numbers
解决方案
imagecopyresized() returns a boolean, not an image resource
which imagejpeg() expects
so wat shud it be? plz tell
i even tried tht line with imagecopyresampled() still same thing
这篇关于图像库 - 图像不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆