Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image cropping like facebook

For those that have been on facebook it allows you to upload an image to use as your avatar, and if that image is too large you can drag it around in a container to set the co-ordinates of the crop.

Can anyone Help me out to implement this functionality in c# ASP.NET

like image 703
xyz Avatar asked Aug 02 '10 05:08

xyz


People also ask

How do I stop Facebook cropping?

If you don't want Facebook to crop your profile picture, make sure it meets the recommended dimensions. The maximum pixel size for PCs is 170 x 170 pixels. On smartphones, the recommended dimensions are 128 x 128 pixels. If you upload an image that's bigger than that, Facebook will automatically crop it.


2 Answers

Probably this will do the job for you

http://webcropimage.codeplex.com/

For writing your own image cropper, study the source code of that.

like image 108
Srinivas Reddy Thatiparthy Avatar answered Oct 11 '22 21:10

Srinivas Reddy Thatiparthy


This will be mostly client-side. You can take a look at something like Jcrop.

like image 27
Shane Reustle Avatar answered Oct 11 '22 22:10

Shane Reustle