Skip to content

Commit

Permalink
[6702] Image cropper increases size of an image relative to the origi…
Browse files Browse the repository at this point in the history
…nal (#3843)
  • Loading branch information
jvega190 committed May 6, 2024
1 parent 2e83b51 commit 05393a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static-assets/components/cstudio-dialogs/crop-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ CStudioAuthoring.Dialogs.CropDialog = CStudioAuthoring.Dialogs.CropDialog || {
self = self;

const canvas = $image.cropper('getCroppedCanvas');
var dataUrl = canvas.toDataURL();
const dataUrl = canvas.toDataURL(imageData.meta.type);

const file = {
dataUrl,
Expand Down

0 comments on commit 05393a7

Please sign in to comment.