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

croppedCanvasOptions are not working as expected in ImageEditor #3281

Closed
poneqz opened this issue Oct 28, 2021 · 0 comments · Fixed by #3320
Closed

croppedCanvasOptions are not working as expected in ImageEditor #3281

poneqz opened this issue Oct 28, 2021 · 0 comments · Fixed by #3320
Assignees
Labels

Comments

@poneqz
Copy link

poneqz commented Oct 28, 2021

croppedCanvasOptions is not working as expected.

for saveBlobCallback function the parameters are not passed. also the save button which existed also got removed in latest build.

Changes Required:

if(this.opts.cropperOptions.croppedCanvasOptions !== {}) {
this.cropper
      .getCroppedCanvas(this.opts.cropperOptions.croppedCanvasOptions)
      .toBlob(saveBlobCallback, currentImage.type, this.opts.quality);
} else {
this.cropper
      .getCroppedCanvas()
      .toBlob(saveBlobCallback, currentImage.type, this.opts.quality);
}

@poneqz poneqz changed the title croppedCanvasOptions are not working as expected. croppedCanvasOptions are not working as expected in ImageEditor Oct 28, 2021
@Murderlon Murderlon linked a pull request Nov 15, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants