swfupload - get image dimensions

余生长醉 提交于 2019-12-12 01:55:03

问题


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.


回答1:


First of all congrats to everyone for a great job.

Why, thank you! I'm also rather pleased with the progress I've made today. ;)

is there any method in the script to check the dimensions of the image

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?



来源:https://stackoverflow.com/questions/2738268/swfupload-get-image-dimensions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!