I made a Python program to convert Obsidian Canvas to SVG images

I needed to convert some of my Obsidian Canvases into SVG images for embedding the resulting SVGs into a website. If you have a similar need, you can use my tool.

The converter code is available on GitHub. It’s a small Python program, and I believe the working principle should be clear from the source code. I tried to preserve the curvature of the edges to match Obsidian’s original visual representation.

Sample:

3 Likes

Looks good and could be quite useful - I used it to import to Miro. Although using your technique I could also create actual Miro objects using their API.

FYI I had to change the letter c of canvas2svg.py (I just renamed the file) since its a Cyrillic c and I couldnt run it as was.