Image cropping/resizing before sending to a server

霸气de小男生 提交于 2019-12-08 04:43:30

问题


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.

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


回答1:


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



来源:https://stackoverflow.com/questions/5492736/image-cropping-resizing-before-sending-to-a-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!