@dusrel/image API
    Preparing search index...

    Interface SvgOptimizeOptions

    interface SvgOptimizeOptions {
        multipass?: boolean;
        path?: string;
        plugins?: PluginConfig[];
        preserve?: string[];
        preserveIds?: boolean;
        pretty?: boolean;
    }
    Index
    multipass?: boolean

    Run SVGO until the output stops changing. Default true (SVGO's own CLI default is a single pass; repeated passes are where the last few percent come from).

    path?: string

    Path hint used in SVGO error messages.

    plugins?: PluginConfig[]

    Full SVGO plugin configuration — replaces the default preset entirely (maximum control; preserveIds/preserve are ignored). Strings name built-in plugins; objects carry params.

    preserve?: string[]

    Specific IDs cleanupIds must keep (and not minify), while other IDs are still optimised. Ignored when preserveIds is true.

    preserveIds?: boolean

    Keep every element ID exactly as written. Default false: SVGO's preset removes unused IDs and minifies referenced ones — right for standalone files, wrong when CSS/JS or a URL fragment references the IDs. Set true to disable cleanupIds entirely.

    pretty?: boolean

    Pretty-print the output (2-space indent). Default false.