swfupload - 获取图像尺寸
首先祝贺大家工作出色。
swfupload 是一个非常好的优质工具。
我的问题是,脚本中是否有任何方法可以检查图像的尺寸,如果尺寸不正确,则显示警告弹出窗口而不保存图像。
提前致谢。
First of all congrats to everyone for a great job.
swfupload is a very good and quality tool.
My question would be, is there any method in the script to check the dimensions of the image and if the dimensions are not correct display warning popup and not save the image.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么,谢谢!我对今天取得的进步也相当满意。 ;)
我很确定这可以通过调整 SWFUpload 的源来完成,但我不知道该功能是否以“本机”形式提供。不过,SWFUpload 在其新的 2.5 版本中可以做的是调整图像大小客户端。我认为可以为此设置固定尺寸。也许这对你有用?
Why, thank you! I'm also rather pleased with the progress I've made today. ;)
I'm pretty sure this can be done by tweaking SWFUpload's source but I don't know whether that function is available in "native" form. What SWFUpload can do in its new 2.5 version, though, is resize images on the client side. I gather it is possible to set fixed dimensions for that. Maybe that works for you?