cstefanache / angular2-img-cropper

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

What is the diffrence between width and croppedWidth #222

Open sr-verve-alwin opened 6 years ago

sr-verve-alwin commented 6 years ago

I am wondering about the difference between the following two sets of properties in CropperSettings

CropperSettings.width = 128; CropperSettings.height = 128;

and

CropperSettings.croppedWidth =100; CropperSettings.croppedHeight = 100;

I'd assumed that width/height defined the dimensions of the cropped image and croppedWidth/croppedHeight defines the dimensions of the preview.

But it looks like width/height has no immediate effect on anything. As in the above setup, Both the preview and the resultant image are of size 100x100 (specified by croppedWidth/croppedHeight). So what does width/height do?

I am trying to get an an output image of size 128x128 while keeping the preview image at 100x100.