Anmol Dash21 downloadsAutomatically export tldraw drawings as SVG and PNG.
Automated Drawing Exporter is an independent desktop companion for the tldraw community plugin. It uses the renderer in the installed plugin to save transparent SVG and PNG images beside your editable drawings.
Drawing.md, embed the exported image with ![[Drawing.md.svg]] or ![[Drawing.md.png]].Each export uses the visible page. Clearing that page writes a transparent image. The companion protects existing files using checksums recorded on the device that generated them. A manually edited, preexisting, or synced image may be skipped. When a source is renamed, further saves use its new name and prior images stay at their previous paths.
Tested with Obsidian Desktop 1.15.1 and tldraw 1.35.1 on macOS. The companion uses the tldraw plugin's internal live editor interface. It requires a focused drawing in its own tab and may need an update when tldraw changes that interface.
The companion reads and writes files in the vault and stores export checksums in Obsidian's local storage. It makes no network requests of its own. Install and enable tldraw separately.
Run npm ci and npm run build to generate main.js.
Report a bug or request a feature on GitHub.