Skip to content

benoitkugler/oksvg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG parser and renderer, written in Go (experimental)

This package is a fork of github.com/srwiley/oksvg: most of the code is copied from it and the core logic is the same.

However, it adds the possiblity of using differents rendering target, by splitting the parsing and processing of the SVG file from its actual drawing.

Of course, you can still raster an icon into a PNG image (using svgraster.RasterSVGIconToImage, built on github.com/srwiley/rasterx), but you can also use a PDF backend (using svgpdf.RenderSVGIconToPDF, built on github.com/phpdave11/gofpdf). Be aware that the PDF backend is still experimental and is missing features like miter limit control and gradient support.

Other backends should be easy to add, by implementing the oksvg.Driver interface.

See Godoc for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages