cstefanache / angular2-img-cropper

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

Not maintaining minWidth and minHeight of cropper when Aspect ratio is kept true. #164

Open oztek22 opened 7 years ago

oztek22 commented 7 years ago

[.] Bug Report

here is my cropper setting for reference

this.cropperSettings2 = new CropperSettings();        
this.cropperSettings2.width = 750;
this.cropperSettings2.height = 400;
this.cropperSettings2.keepAspect = true;

this.cropperSettings2.croppedWidth = 750;
this.cropperSettings2.croppedHeight = 400;

this.cropperSettings2.canvasWidth = 427.367;
this.cropperSettings2.canvasHeight = 224;

this.cropperSettings2.minWidth = 750;
this.cropperSettings2.minHeight = 400;

this.cropperSettings2.rounded = false;
this.cropperSettings2.preserveSize = true;

this.cropperSettings2.cropperDrawSettings.strokeColor = 'rgba(255,255,255,1)';
this.cropperSettings2.cropperDrawSettings.strokeWidth = 2;
this.cropperSettings2.noFileInput = true;

this.data2 = {};

I uploaded Image of 640 480 dimension than my cropper is going till 190 190 while minwidth is set to 300