Is there a js library that can directly convert svg to png?

the svg string is generated by code as follows:

<svg id="SvgjsSvg1001" width="500" height="50" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs"><defs id="SvgjsDefs1002"></defs><text id="SvgjsText1008" font-family="Inconsolata" x="20" y="13.203125" fill="-sharp00ff00" family="Inconsolata" svgjs:data="{"leading":"1.3"}"><tspan id="SvgjsTspan1010" dy="20.8" x="20">hello world</tspan></text></svg>

is there a js library that can directly convert svg strings into jpg/png

Svg
Mar.01,2021

searched casually:

clipboard.png

41 results.


have you solved it? The same doubts

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34efe-2bf5b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34efe-2bf5b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?