Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image quality get reduced after cropping #275

Open
shijithkm opened this issue Dec 12, 2017 · 2 comments
Open

Image quality get reduced after cropping #275

shijithkm opened this issue Dec 12, 2017 · 2 comments

Comments

@shijithkm
Copy link

shijithkm commented Dec 12, 2017

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 = {};
@cstefanache
Copy link
Owner

Have you tried etting: preserveSize: true?

@equero
Copy link

equero commented Sep 10, 2018

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

this.cropperSettings.preserveSize = true;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants