Open Source Go Library for SVG Creation and Manipulation

A stable Go API that supports Generating SVG drawings. You can add shapes, lines, text, images, paths and apply color, gradients, animations and more.

SVGo is an open source Go language library that enables software developers to create SVG inside their own apps using Scalable Vector Graphics 1.1 Specification. The library provides support for SVG shapes like circle, ellipse, polygon, rectangle, etc. It also supports SVG transformations features like translate, rotate, scale, skew, and so on.

The SVGo library can run anywhere the Go language is available and is completely portable across popular operating systems like Linux, Mac OS X, and Windows, etc. The library has included several important features related to shapes, lines, text, drawing paths, images and gradients, image transformation, filter effects, applying animations, metadata elements, and so on.

The library is designed to produce standard, clean, readable code that is close to tuned, hand-crafted code that makes full use of a variety of SVG elements. The library has provided support for built-in filters for user’s convenience, such as blur function by standard deviation, grayscale filter to the image, Rotate Hues, Invert the image's colors, apply sepia tone, and many more.

Previous Next

Getting Started with Imaging

The easiest and recommend way to install imaging is via SVGo. Please use the following command for an easy and smooth installation.

Install SVGo via GitHub

go get -u

Generate SVG via GO Library

The open source SVGo library enables software developers to programmatically generate SVG drawings inside their own application using Go commands. Developers need to define the width and height of the SVG canvas as well as the destination of SVG. Developers can easily draw shapes like circle, ellipse, polygon etc. as well as can enter the text of their choice with ease.

Drawing Shapes & Paths

The SVGo library has provided functionality for creating a different kinds of shapes inside their own applications. It supports drawing a circle, ellipse, polygon, rectangle or a rounded rectangle, square, series of line segments, and more. You can also easily draw lines and paths with ease. You can draw an elliptical arc, cure, cubic bezier curve, quadratic bezier curve, and so on.

Image and Text Support

The open source SVGo library has provided complete support for inserting images and text while creating an SVG drawing using Go commands. While placing an image or text you need to s specify the place where you want to put it and can also define the width and height for the image. You can also insert multiple lines of text and define size, fill, alignment, and spacing. It also supports placing styled text along with the path. You can also define the color of your choice using the RGB scheme.

Applying Animation to SVG

SVG animation elements were developed in collaboration with the World Wide Web Consortium (W3C) Synchronized Multimedia Working Group. The SVGo enables developers to make stunning animations and export a single animated SVG file with ease. The library allows animating the item referenced by the link, animates the referenced object along the specified path, animates the translation transformation, animates the rotation transformation, animates the scale or skewX transformation, and so on