Use the right image dimensions when saving canvas
This commit is contained in:
@@ -1114,8 +1114,8 @@ export const MediaEditor = ({
|
|||||||
try {
|
try {
|
||||||
fabricCanvas.discardActiveObject();
|
fabricCanvas.discardActiveObject();
|
||||||
fabricCanvas.setDimensions({
|
fabricCanvas.setDimensions({
|
||||||
width: image.width,
|
width: imageState.width,
|
||||||
height: image.height,
|
height: imageState.height,
|
||||||
});
|
});
|
||||||
fabricCanvas.setZoom(1);
|
fabricCanvas.setZoom(1);
|
||||||
const renderedCanvas = fabricCanvas.toCanvasElement();
|
const renderedCanvas = fabricCanvas.toCanvasElement();
|
||||||
|
Reference in New Issue
Block a user