asyncfileupload ajax control
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:
开发者_C百科When user is in process of uploading, I only want them to see *.jpg *.gif and *.bmp files
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é
精彩评论