Skip to content

Commit

Permalink
Update app/components/modals/cropper-modal.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Kush Trivedi <kushthedude@gmail.com>
  • Loading branch information
maze-runnar and kushthedude authored Dec 25, 2019
1 parent befd0a6 commit 4350c0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/components/modals/cropper-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ export default class extends ModalBase {
}
@action
cropImage() {
this.$('img').croppie('result', 'base64', 'original', 'jpeg').then(result => {
this.$('img').croppie('result', { type: 'base64', size: 'original', quality: 1, format: 'jpeg' }).then(result => {
if (this.onImageCrop) {
this.onImageCrop(result);
}
});
}
}

0 comments on commit 4350c0d

Please sign in to comment.