cstefanache / angular2-img-cropper

Angular 2 Image Cropper
MIT License
364 stars 135 forks source link

added ability to set crop position using two-way binding #123

Closed esorio closed 7 years ago

esorio commented 7 years ago

I added a new binding (two-way) to the ImageCropperComponent: the position of the crop area. This may be useful if you want to set programmatically the crop area and allow the user to refine the selection.

In my use-case I apply a face recognition algorithm to the input image and then set the crop area with the face corners.

Let me know what you think :)