optimize

abstract suspend fun optimize(content: String, fileType: FileType): String(source)

Optimizes vector markup content for the given fileType.

Optimization may include simplifying paths, removing unnecessary metadata, adjusting precision, or other transformations that reduce complexity while preserving visual fidelity.

Return

the optimized markup content.

Parameters

content

the raw SVG or AVG markup to optimize.

fileType

determines which optimization strategy to apply.