Considering using resvg-js instead of svg2png?
Opened this issue · 0 comments
yisibl commented
svg2png has not been maintained for a long time, have you considered using resvg-js instead of svg2png? resvg-js is almost the fastest and most compatible SVG library.
In some scenarios,resvg-js
is even faster than sharp.
Benchmark
Running "resize width" suite...
resvg-js(Rust):
12 ops/s, ±22.66% | fastest 🚀
sharp:
9 ops/s, ±64.52% | 25% slower
skr-canvas(Rust):
7 ops/s, ±3.72% | 41.67% slower
svg2img(canvg and node-canvas):
6 ops/s, ±16.94% | slowest, 50% slower