From 00e4a4c1fddeb54dd3adf2ba4079a6ee5fc258c5 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Tue, 7 Dec 2021 13:09:25 -0500 Subject: [PATCH] Use the right image dimensions when saving canvas --- ts/components/MediaEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/components/MediaEditor.tsx b/ts/components/MediaEditor.tsx index 1c7ec570f..cf481cc8b 100644 --- a/ts/components/MediaEditor.tsx +++ b/ts/components/MediaEditor.tsx @@ -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();