Skip to content

Considering using resvg-js instead of svg2png? #102

@yisibl

Description

@yisibl

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

image

See also https://github.com/RazrFalcon/resvg#svg-support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions