客户端的图像压缩 [英] Image Compression on Client Side

查看:97
本文介绍了客户端的图像压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好先生,



我有一个要求,我需要压缩我的图像并将其发布到服务器上。但它应该只将压缩的图像发送到服务器而不是真实的。所以很明显我们的asp.net代码不会工作,因为它会在服务器上获取精确图像,然后它会压缩。我需要一些javascript代码或其他一些技术,我可以在服务器上传之前压缩我的图像大小。目前我有文件上传控制和提交按钮。所以我的文件上传控件应该从客户端选择文件,它应该在客户端压缩,然后只有它应该发送到服务器。请帮我这些......

提前致谢

解决方案

试试以下链接........这个链接将指导你!!!!!!!



http://www.csharp-station.com/articles/thumbnails.aspx

Hello sir,

I have one requirement where i need to compress my image and post it onto the server. but it should send only compressed image to server not the real one. so obviously our asp.net code will not work as it will take actuall image on server and then it will compress. I need some javascript code or some other technique using which i can compress size of my image before uploading on server. Currently i have file upload control and submit button. So my file upload control should pick file from client side,it should compress on client side and then only it should send this to server. Please help me with these...
Thanks in advance

解决方案

Try the following link ........this link will guide u!!!!!!!

http://www.csharp-station.com/articles/thumbnails.aspx


这篇关于客户端的图像压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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