swfupload-获取图像尺寸 [英] swfupload - get image dimensions

查看:92
本文介绍了swfupload-获取图像尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先恭喜大家工作出色.

First of all congrats to everyone for a great job.

swfupload是一个非常优质的工具.

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.

谢谢.

推荐答案

首先恭喜大家工作出色.

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

我非常确定可以通过调整SWFUpload的源代码来完成此操作,但是我不知道该功能是否以本机"形式可用.但是,SWFUpload在其新的2.5版本中可以执行的操作是调整图像大小客户端.我认为可以为此设置固定尺寸.也许对您有用?

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?

这篇关于swfupload-获取图像尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆