Would you like to work on a fix?
- [ ] Check this if you would like to implement a PR, we are more than happy to help you go through the process.
Current and expected behavior
The following SVG will not render using Canvg.
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="react-sketch-canvas" style="width: 100%; height: 100%;" viewBox="0 0 1059 675" width="1059" height="675"><g id="react-sketch-canvas__eraser-stroke-group" display="none"><rect id="react-sketch-canvas__mask-background" x="0" y="0" width="100%" height="100%" fill="white"></rect></g><defs></defs><g id="react-sketch-canvas__canvas-background-group"><rect id="react-sketch-canvas__canvas-background" x="0" y="0" width="100%" height="100%" fill="white"></rect></g><g id="react-sketch-canvas__stroke-group-0" mask="url(#react-sketch-canvas__eraser-mask-0)"><path id="react-sketch-canvas__0" d="M 238.43209838867188,439.17108154296875 C 238.37274169921875,439.17108154296875 237.90307006835937,439.97108154296876 238.13531494140625, 439.17108154296875 C 238.36755981445313,438.37108154296874 237.9771484375,435.97108154296876 239.59332275390625, 435.17108154296875 C 241.2094970703125,434.37108154296874 241.62747802734376,435.17108154296875 246.2161865234375, 435.17108154296875 C 250.80489501953124,435.17108154296875 251.14334716796876,435.2710815429688 262.536865234375, 435.17108154296875 C 273.9303833007813,435.0710815429687 281.3144897460937,434.87108154296874 303.18377685546875, 434.67108154296875 C 325.0530639648438,434.47108154296876 349.8433471679688,434.2710815429688 371.88330078125, 434.17108154296875 C 393.9232543945312,434.0710815429687 396.82886962890626,434.17108154296875 413.383544921875, 434.17108154296875 C 429.93822021484374,434.17108154296875 437.06492919921874,434.17108154296875 454.65667724609375, 434.17108154296875 C 472.24842529296876,434.17108154296875 482.7284790039063,435.26245727539066 501.34228515625, 434.17108154296875 C 519.9560913085937,433.0797058105469 529.1119018554688,430.9040588378906 547.7257080078125, 428.7142028808594 C 566.3395141601562,426.52434692382815 576.7741577148438,427.0140441894531 594.4113159179688, 423.2218017578125 C 612.0484741210937,419.4295593261719 624.8318969726563,413.06443481445314 635.9114990234375, 409.75299072265625 C 646.9911010742187,406.44154663085936 639.7039428710938,409.7242004394531 649.809326171875, 406.6645812988281 C 659.9147094726562,403.60496215820314 674.3360229492188,398.48902587890626 686.4384155273438, 394.45489501953125 C 698.5408081054687,390.42076416015624 699.9802490234375,390.22630004882814 710.3212890625, 386.4939270019531 C 720.6623291015625,382.7615539550781 728.2006225585938,379.92344970703124 738.1436157226562, 375.79302978515625 C 748.0866088867188,371.66260986328126 754.6994506835938,368.4070251464844 760.0362548828125, 365.8418273925781 C 765.3730590820312,363.27662963867186 761.634521484375,364.6594177246094 764.82763671875, 362.967041015625 C 768.020751953125,361.2746643066406 771.296630859375,360.0413452148438 776.0018310546875, 357.37994384765625 C 780.70703125,354.7185424804687 784.63330078125,352.45399169921876 788.3536376953125, 349.6600341796875 C 792.073974609375,346.86607666015624 791.9567626953125,346.61561889648436 794.603515625, 343.41015625 C 797.2502685546875,340.20469360351564 800.190625,335.5882080078125 801.58740234375, 333.6327209472656" fill="none" stroke-linecap="round" stroke="black" stroke-width="30"></path></g></svg>
Even the demo only produces a blank output for the SVG.
Reproduction
https://canvg.js.org/demo/
Canvg version
4.0.1
Possible solution
Is my SVG invalid/unsupported somehow? I'm able to render it in various online SVGviewers (like so).