pub fn optimize_svg(
input: &str,
config: &OptimizeConfig,
) -> Result<String, OptimizeError>Expand description
Run the SVG optimization pipeline.
Parses the input SVG with roxmltree, walks the tree once, and writes optimized output with xmlwriter — skipping nodes that match removal criteria based on the config.