fathyb / html2svg

Convert HTML and `<canvas>` to SVG, PDF, or images using Chromium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVG output appears incompatible with inkscape

paulmillar opened this issue · comments

Inkscape is a popular SVG visual editor.

The output from html2svg appears to be incompatible with Inkscape. Loading html2svg's output in Inkscape yields an empty field with the expected size but (seemingly) no content. Inkscape doesn't show any error messages when loading the SVG data. I'm testing this with Inkscape v1.0.2, running on Debian 11 (bullseye).

paul@sprocket:~$ inkscape -V
Inkscape 1.0.2 (e86c870879, 2021-01-15)
    Pango version: 1.46.2
paul@sprocket:~$ 

The output SVG is shown correctly by Firefox.

commented

My workaround was to use html2svg to export to a PDF and import that into Inkscape. Sometimes you have to switch between import strategy to get it to render correctly but in summary it works.