cstefanache / angular2-img-cropper

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

Requirement : change the box dimension (selection) + fix reset #228

Open samfrach opened 7 years ago

samfrach commented 7 years ago

Hello,

first of all, good job ! I need such a project !

I am currently evaluating it and I will come back soon to fully implement what I need.

I don't know how to call the box that you can drag & drop to select the zone of the picture you want to crop : I will call it the box :)

at the beginning, I would like to have a box 200x100 and keep this rati of 2... (my users have to select a photo), then I need a box 200x300 ... (my users have to select their signature).

Unfortunately, I can programatically change the size with CropPosition but the keepAspect is applied.

I've also noticed, that if you change the picture (specially it's resolution : try to use a huge image then a small one), the config is lost (the box is out of the screen, etc.) I think, all variables in the constructor should be placed in a init() function that could be called while resetting.

thank you