Skip to content

Commit 9bd3a2e

Browse files
maze-runnarkushthedude
authored andcommitted
fix: improve quality of image before sending to server (#3680)
Co-authored-by: Kush Trivedi <[email protected]>
1 parent 9b136d7 commit 9bd3a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/modals/cropper-modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default ModalBase.extend({
3232
this.onVisible();
3333
},
3434
cropImage() {
35-
this.$('img').croppie('result', 'base64', 'original', 'jpeg').then(result => {
35+
this.$('img').croppie('result', { type: 'base64', size: 'original', quality: 1, format: 'jpeg' }).then(result => {
3636
if (this.onImageCrop) {
3737
this.onImageCrop(result);
3838
}

0 commit comments

Comments
 (0)