ComfyUI Node
SVG Path Cleanup
A ComfyUI node in TJ_Vector with 12 inputs and 2 outputs.
SVG Path Cleanup
- cleaned_svg
- statistics
◄svg_string—►
◄remove_short_pathstrue►
◄min_path_length5.0►
◄merge_close_pathstrue►
◄merge_distance2.0►
◄simplify_pathstrue►
◄simplify_tolerance0.5►
◄remove_near_duplicate_pathstrue►
◄near_duplicate_distance1.5►
◄round_coordinatestrue►
◄decimal_places2►
◄remove_duplicate_pathstrue►
CategoryTJ_Vector
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| svg_string | STRING | — | |
| remove_short_paths | BOOLEAN | true | — |
| min_path_length | FLOAT | 5.00–100 | Remove paths shorter than this length |
| merge_close_paths | BOOLEAN | true | — |
| merge_distance | FLOAT | 2.00–20 | Merge paths if endpoints are within this distance |
| simplify_paths | BOOLEAN | true | — |
| simplify_tolerance | FLOAT | 0.50–5 | Path simplification tolerance |
| remove_near_duplicate_paths | BOOLEAN | true | — |
| near_duplicate_distance | FLOAT | 1.50–10 | Treat two paths as duplicates if their bidirectional average distance is below this threshold |
| round_coordinates | BOOLEAN | true | — |
| decimal_places | INT | 20–6 | — |
| remove_duplicate_pathsopt | BOOLEAN | true | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| cleaned_svg | STRING | — |
| statistics | STRING | — |