---
title: "SVGOptimizationOptions class"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/"
product: "Aspose.SVG for Python via .NET API References"
---


## SVGOptimizationOptions class

SVGOptimizationOptions is a class for storing options for optimizing SVG documents.



The SVGOptimizationOptions type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/__init__/#) | Initializes a new instance of the [`SVGOptimizationOptions`](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions) class. |


### Properties
| Property | Description |
| :- | :- |
| [collapse_groups](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/collapse_groups) | Gets or sets the option to collapse excess groups. It is 'true' by default. |
| [remove_descriptions](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_descriptions) | Gets or sets the option to remove only editors content or empty elements. It is 'true' by default. |
| [remove_empty_attributes](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_empty_attributes) | Gets or sets the option to remove attributes with empty values. It is 'true' by default. |
| [remove_empty_containers](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_empty_containers) | Gets or sets the option to remove empty containers. It is 'true' by default. |
| [remove_empty_text](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_empty_text) | Gets or sets the option to remove empty Text elements. It is 'true' by default. |
| [remove_hidden_elements](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_hidden_elements) | Gets or sets the option to remove elements that are not visible during rendering. It is 'true' by default. |
| [remove_metadata](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_metadata) | Gets or sets the option to remove metadata. It is 'true' by default. |
| [remove_unused_namespaces](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_unused_namespaces) | Gets or sets the option to remove the declaration of unused namespaces from the SVG element <br/>that are not used in elements or attributes. It is 'true' by default. |
| [remove_unused_defs](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_unused_defs) | Gets of sets the option to remove the content of defs that are not displayed directly without identifiers. It is 'true' by default. |
| [remove_useless_stroke_and_fill](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_useless_stroke_and_fill) | Gets of sets the option to remove unused stroke and fill attributes. It is 'true' by default. |
| [clean_list_of_values](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/clean_list_of_values) | Gets or sets the option for rounding to 3 decimal places of list numeric values in attributes. It is 'true' by default. |
| [remove_indents_and_line_breaks](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/remove_indents_and_line_breaks) | Gets or sets the option to remove line indents and breaks. It is 'true' by default. |
| [path_optimization_options](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions/path_optimization_options) | Gets or sets the option [`SVGPathOptimizationOptions`](/svg/python-net/aspose.svg.toolkit.optimizers/svgpathoptimizationoptions).<br/>If this option is null, then path element optimization will not be performed. |



### See Also
* module [`aspose.svg.toolkit.optimizers`](..)
* class [`SVGOptimizationOptions`](/svg/python-net/aspose.svg.toolkit.optimizers/svgoptimizationoptions)
* class [`SVGPathOptimizationOptions`](/svg/python-net/aspose.svg.toolkit.optimizers/svgpathoptimizationoptions)
