I noticed the same problem.
Even if excalidraw is a quite complete, I’m often still using write by styluslabs and being able to open the notes on obsidian would be great! (proper SVG display would be something - even if the file size tend to be huge, SVGZ support in obsidian would be a dream)
I have a sizable collection of yEd diagrams that I have converted to svg because there’s no plugin for GraphML. Most of them work. Some do not; Obsidian seems to hang for long periods generating a thumbnail, sometimes forever.
I have the same issue, and Obsidian isn’t the only app that doesn’t render the SVG file correctly. The same thing happens on my iPad and in Jupyter notebooks, but web browsers and many other apps work fine. I spent some time experimenting and noticed that the files were always appearing as 300 wide x 150 high, so that gave me something to search for.
I found this: SVG Integration
300x150 is the default specified in the SVG spec if it isn’t specified in the document svg element.
Copying the numbers from the CSS and creating height and width attributes worked perfectly on both my iPad and Jupyter with or without the CSS element.
<svg width=“1114px” height=“3348px” id=“write-document” xmlns=“http://www.w3.org/2000/svg” xmlns:xlink=“http://www.w3.org/1999/xlink”>
Write opened the file without an issue, but saves the file without the attributes (as I assumed it would).
SVG isn’t really a standard, and there are many variations. What I would ask from the Obsidian team is to add extra logic to figure out the dimensions of an SVG image before reverting to the default (which is way too small in 2024, but would have seemed reasonable over 20 years ago).