views:

271

answers:

1

is there some client components (jquery/swf) that will give the possibility to upload and crop (user should be able to select the area to crop) an image in the browser and then send the cropped image to the server
I'm on asp.net-mvc (not sure if it matters)

+3  A: 

jcrop

Jcrop is the quick and easy way to add image cropping functionality to your web application. It combines the ease-of-use of a typical jQuery plugin with a powerful cross-platform DHTML cropping engine that is faithful to familiar desktop graphics applications.

CD
I'd second this. See http://towardsnext.wordpress.com/2009/04/13/crop-image-in-aspnet-using-jcrop-jquery/ for a tutorial using it in MVC.
Dan Diplo
yes jcrop is good for cropping, but you have to upload the entire image before cropping it, I would like to know if there is something that will crop the image at the client before sending it to the server
Omu
Cropping client side would need some kind of plugin, like Flash or Silverlight (you can't do it via JavaScript).
Dan Diplo
@Dan Diplo I'm ok with Flash, is there something made in Flash for this purpose ?
Omu
@Omu - see this post http://stackoverflow.com/questions/2008836/flash-image-upload-with-mandatory-crop Hope it helps?
Dan Diplo