Just to be clear: PNG is a description of pixel values comprising an image (RGBa, RGBa, RGBa, ...), SVG is a program for creating an image (set color to blue, draw a circle, change to red, draw a line, ...). Going from SVG (scalable vector graphics) to pixels is to render an image by executing the simple program of graphical operation codes. (As said above)
Solutions depending on situation: most every browser has code to rasterize SVG. Can you invoke one to produce your image? There are numerous free tools to do the same--can you bundle one of those and invoke it as an external program? Cairo can do it. (these are in addition to what you really seem to want, which is a fully Go SVG -> PNG renderer.) Good luck in your project, michael On Fri, Jan 31, 2020 at 6:03 PM robert engels <reng...@ix.netcom.com> wrote: > There is no cross-platform graphics library included in Go. > > Most likely you’ll need a C binding to Qt or similar to perform the > rasterization. > > You might be able to put one together using something like > https://github.com/hajimehoshi/ebiten > > > On Jan 31, 2020, at 7:31 PM, maithri.fri...@gmail.com wrote: > > I'm looking for one too but can't find anything online either.. > > On Monday, March 9, 2015 at 11:35:51 PM UTC-7, will wrote: >> >> Hi Gophers, >> >> Is there a Golang based tool (or library) tool to convert svg to png or >> jpg? >> >> regards, >> >> Will >> > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/d03ad514-1e56-42a3-b7c6-798346a76ca1%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/d03ad514-1e56-42a3-b7c6-798346a76ca1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/BF136C90-3061-4E01-890B-A6FB38E94E07%40ix.netcom.com > <https://groups.google.com/d/msgid/golang-nuts/BF136C90-3061-4E01-890B-A6FB38E94E07%40ix.netcom.com?utm_medium=email&utm_source=footer> > . > -- *Michael T. jonesmichael.jo...@gmail.com <michael.jo...@gmail.com>* -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALoEmQw_8%3D3AkkrmZNG9Xrzq37TaauFF77wJUGjkp-Mx3%3DrUPQ%40mail.gmail.com.