angular2-img-cropper
angular2-img-cropper copied to clipboard
Image quality get reduced after cropping
Before upload dpi of the image was 300 but after cropping this got reduced to 96
Any idea how to fix this ?
Here is my config
this.cropperSettings = new CropperSettings();
this.cropperSettings.width = 400;
this.cropperSettings.height = 400;
this.cropperSettings.croppedWidth = 400;
this.cropperSettings.croppedHeight = 400;
this.cropperSettings.canvasWidth = 400;
this.cropperSettings.canvasHeight = 400;
this.cropperSettings.noFileInput = true;
this.cropperSettings.fileType = 'image/jpeg'
this.imageData = {};
Have you tried etting: preserveSize: true?
The problem is solved with @cstefanache post. I can confirmed. I suggest to close this issue
this.cropperSettings.preserveSize = true;