angular2-img-cropper icon indicating copy to clipboard operation
angular2-img-cropper copied to clipboard

Image quality get reduced after cropping

Open shijithkm opened this issue 8 years ago • 2 comments

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 = {};

shijithkm avatar Dec 12 '17 08:12 shijithkm

Have you tried etting: preserveSize: true?

cstefanache avatar Jan 18 '18 14:01 cstefanache

The problem is solved with @cstefanache post. I can confirmed. I suggest to close this issue

this.cropperSettings.preserveSize = true;

equero avatar Sep 10 '18 08:09 equero