Search code examples
javascriptsvgfaviconfabricjs

Dynamic svg favicon?


I have an icon as SVG. I want to have it in different colors as favicon.

Since there isn't any toDataUrl() for SVG elements I don't see a solution that doesn't involve a server.

Any idea for a client side solution?


Solution

  • fabric.js supports rendering of SVG elements into canvas elements.