mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: aspect ratio of distorted images are not preserved in SVG exports (#8061)
This commit is contained in:
parent
60e3801691
commit
caf2db934c
2 changed files with 2 additions and 1 deletions
|
@ -421,6 +421,7 @@ const renderElementToSvg = (
|
||||||
image.setAttribute("width", "100%");
|
image.setAttribute("width", "100%");
|
||||||
image.setAttribute("height", "100%");
|
image.setAttribute("height", "100%");
|
||||||
image.setAttribute("href", fileData.dataURL);
|
image.setAttribute("href", fileData.dataURL);
|
||||||
|
image.setAttribute("preserveAspectRatio", "none");
|
||||||
|
|
||||||
symbol.appendChild(image);
|
symbol.appendChild(image);
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue