English 中文(简体)
用户面形象的消化和节省
原标题:Client side image resize and save

是否有办法通过网络浏览器用户的一方,将图像转成温文档并加以拯救?

我试图实现的是将图像转成1024px宽/高的图像,将其在当地节省下来,然后将再版图像上载到服务器。

原因是,我正在建造一个在线服务器,使用户能够把最多6个高转录图像上载到4mb。 然后,在服务器上,我转幅为1024px/高,实际上只有200kb。 这是一种废物上载4mb的范畴,只可将其改装为较小的档案尺寸,因此,我希望有办法进行消化,在卸载之前,可以节省一个时间档案的客户。

感谢任何帮助。

问题回答

你可以使用超文本5,我想...... http://www.html5canvastutorials.com/tutorials/html5-canvas-image-crop/“rel=“nofollow”)

The first you need is to get the upload image before it uploads - Thats possible with HTML5 files property of an input[type=file] element.

如果做这些事情,你需要修改与联合材料/超文本文件5合并的图像数据——不知道如何运作。

诸位能够用XHR提升经修改的形象。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签