Skip to content

Render SVG masks to pngs consistently, without anti-aliasing or blurry edges!

Notifications You must be signed in to change notification settings

UniversalDataTool/svg-mask-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG Render Mask | Portable SVG Mask Rendering

This library is in beta, but being used by the Universal Data Tool. Contributions are appreciated!

Render SVGs on node and web. Uses node-pureimage and canvg.

Existing libraries often had problems with serverless platforms, inconsistency across machines, forced anti-aliasing or unnecessary complexity.

Usage

npm install svg-render

const render = require("svg-render")

render(svgText, { output: "pngbuffer" }).then((pngBuffer) => {
  // fs.writeFile("./myImage.png", pngBuffer)
})

TODO

  • [] Font Support

About

Render SVG masks to pngs consistently, without anti-aliasing or blurry edges!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published