optimize method

optimize

Optimizes SVGDocument by applying a set of default optimization options.

def optimize(self, document):
    ...
ParameterTypeDescription
documentSVGDocumentThe instance of SVGDocument.

optimize

Optimizes SVGDocument by applying a set of specified optimization options.

def optimize(self, document, options):
    ...
ParameterTypeDescription
documentSVGDocumentThe instance of SVGDocument.
optionsSVGOptimizationOptionsThe instance of SVGOptimizationOptions.

See Also