Use the right image dimensions when saving canvas
Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
This commit is contained in:
parent
bda0bc0631
commit
57020c83fc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue