在发送到服务器之前进行图像裁剪/调整大小 [英] Image cropping/resizing before sending to a server

查看:126
本文介绍了在发送到服务器之前进行图像裁剪/调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种解决方案,允许用户上传图像,裁剪图像,然后将更新的图像发送到服务器。

I am searching for a solution that will allow a user to upload an image, crop the image, and then send the updated image to the server.

基本上,我想处理所有编辑客户端,只将新的较小的缩略图发送到服务器。

Basically, I would like to handle all the editing client side and only send the new, smaller, thumbnail to the server.

我该怎么做?我已经看到这可以用Flash,但我正在寻找替代解决方案。

How can I do this? I have seen this is possible with Flash, but I am looking for alternative solutions.

推荐答案

您是否仅限于某些浏览器?使用HTML5,这是来自Anand的概念证明文卡塔拉曼。演示是这里

Are you restricted to certain browsers? Using HTML5, here is a proof of concept from Anand Venkataraman. Demo is here.

这篇关于在发送到服务器之前进行图像裁剪/调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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