Is it possible to compress images upon upload directly from AsyncFileUpload
? If yes, can you guide me how?
For example: I have a user that uploads an image .jpeg
with size 1200x1600 (5MB)
and I want to compress it into a 600x800 (1MP~2MB)
file. As much as possible I have to do this on client side just before I upload it to server.
Thank you.
You can take a look at DotNetZip library. I think you will find your solution there.
在HTML5浏览器上,您可以在此答案中使用该解决方案,否则您将不得不要求您的客户端使用插件( Java , Flash , Silverlight )等。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.