开发者

asyncfileupload ajax control

开发者 https://www.devze.com 2023-02-04 05:07 出处:网络
I am using asyncfileupload ajax control and can successfully upload and save picture on server. I need to do the following and not sure how:

I am using asyncfileupload ajax control and can successfully upload and save picture on server.

I need to do the following and not sure how:

  1. 开发者_C百科When user is in process of uploading, I only want them to see *.jpg *.gif and *.bmp files

  2. Once the user uploads their picture, how do I reduce the quality of the picture so it is less than 10 KB?

Env is VS 2008 C#

Thanks, Behrouz


See here for a perfect answer on scaling and covnerting images: High Quality Image Scaling Library

You will have to play with width/height and/or quality until you are below 10k.

René

0

精彩评论

暂无评论...
验证码 换一张
取 消