PHP/JS: Profilephoto resize and cutting
<p>Hi i just went on a site, when you press "upload image" a lightbox comes up, and then it says upload image, you browse find a image and then you press submit. After that, it shows your image with a square that you can move around and make bigger smaller /width/height.. so you like cutting. After that you can save, and you now have a new avatar.</p>

<p>What have they done for doing that? 
Is there any library or so to do this? Would like to have that on my webpage.</p>
