Can SVGOMG preserve specific metadata within an SVG file during optimization?
No, SVGOMG includes a 'Remove metadata' feature that, when enabled, will strip out metadata tags from your SVG. This is part of its minification process to reduce file size.
Does SVGOMG offer the ability to convert CSS styles embedded within an SVG to inline attributes?
Yes, SVGOMG provides an option called 'Style to attributes'. When activated, this feature will convert CSS styles defined within <style> tags or style attributes into inline presentation attributes on the respective SVG elements.
Is it possible to prevent SVGOMG from removing empty container elements during the optimization process?
SVGOMG has a 'Remove empty containers' feature that, when enabled, will eliminate SVG elements that serve as containers but have no content. To preserve these, you would need to disable this specific optimization option.
How does SVGOMG handle the optimization of path data, specifically regarding non-eccentric ellipses?
SVGOMG includes a feature to 'Convert non-eccentric <ellipse> to <circle>'. This optimization identifies ellipses that are perfectly circular and converts them to the more compact <circle> element representation.
Can SVGOMG automatically sort attributes within SVG elements to maintain a consistent structure?
Yes, SVGOMG offers a 'Sort attrs' feature. When enabled, this will reorder the attributes within your SVG elements alphabetically or according to a predefined order, contributing to more consistent and predictable markup.
Does SVGOMG provide a way to remove raster images that might be embedded within an SVG file?
Yes, SVGOMG includes a 'Remove raster images' feature. Activating this option will strip out any embedded bitmap images (like PNGs or JPEGs) that are referenced within the SVG markup.