Use the right image dimensions when saving canvas

This commit is contained in:
Josh Perez 2021-12-07 13:09:25 -05:00 committed by GitHub
parent d658dc9025
commit 00e4a4c1fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1114,8 +1114,8 @@ export const MediaEditor = ({
try {
fabricCanvas.discardActiveObject();
fabricCanvas.setDimensions({
width: image.width,
height: image.height,
width: imageState.width,
height: imageState.height,
});
fabricCanvas.setZoom(1);
const renderedCanvas = fabricCanvas.toCanvasElement();