SVGOptimizer class

SVGOptimizer class

SVGOptimizer is a static class designed to optimize SVG documents. By optimization, we mean removing unused or invisible elements and their attributes, merging groups, and reducing the size of path segments.

The SVGOptimizer type exposes the following members:

Methods

MethodDescription
optimizeOptimizes SVGDocument by applying a set of default optimization options.
optimizeOptimizes SVGDocument by applying a set of specified optimization options.

See Also