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

fix: improve quality of image before sending to server #3680

Merged
merged 14 commits into from
Dec 24, 2019
2 changes: 1 addition & 1 deletion app/components/modals/cropper-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default ModalBase.extend({
this.onVisible();
},
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);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
},
"private": true,
"dependencies": {
"@bower_components/Croppie": "Foliotek/Croppie#^2.4.1",
"@bower_components/Croppie": "Foliotek/Croppie#^2.6.4",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maze-runnar You sure there will be no changes to yarn.lock for this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes , i don't made any changes beside this in my local . So i am sure .

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert it, not needed

maze-runnar marked this conversation as resolved.
Show resolved Hide resolved
"@bower_components/flexibility": "10up/flexibility#^2.0.1",
"@bower_components/js-polyfills": "inexorabletash/polyfill#^0.1.34",
"@bower_components/open-event-theme": "fossasia/open-event-theme#^0.0.5",
Expand Down