Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/components/modals/cropper-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ModalBase from 'open-event-frontend/components/modals/modal-base';
export default ModalBase.extend({
onVisible() {
let viewport = {};
let factor = 150;
let factor = 750;
const aspectRatio = this.getWithDefault('aspectRatio', [2, 1]);
viewport.width = aspectRatio[0] * factor;
viewport.height = aspectRatio[1] * factor;
Expand Down 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', 'base64', 'original', 'jpeg', 1).then(result => {
Copy link
Member

Choose a reason for hiding this comment

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

What is this one, any official guide?

Copy link
Member

Choose a reason for hiding this comment

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

Quality parameter in croppie .

Link to official guide ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Revert this change

if (this.onImageCrop) {
this.onImageCrop(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
icon='camera'
hint=(t 'Select Event Image')
maxSizeInKb=10000
helpText=(t 'We recommend using at least a 2160x1080px (2:1 ratio) image')
helpText=(t 'We recommend using at least a 2160x1080px (2:1 ratio) image and never less than 1500x750px image')
Copy link
Member

Choose a reason for hiding this comment

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

We have already specified the at least, This change is unneeded.

requiresDivider=true}}
</div>
</div>
Expand Down