ComfyUI Node

SVG Path Cleanup

A ComfyUI node in TJ_Vector with 12 inputs and 2 outputs.

By TJ16th·Created 9 months ago·Updated 9 months ago· 2
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)

    NameTypeDefaultDescription
    svg_stringSTRING
    remove_short_pathsBOOLEANtrue
    min_path_lengthFLOAT5.00–100Remove paths shorter than this length
    merge_close_pathsBOOLEANtrue
    merge_distanceFLOAT2.00–20Merge paths if endpoints are within this distance
    simplify_pathsBOOLEANtrue
    simplify_toleranceFLOAT0.50–5Path simplification tolerance
    remove_near_duplicate_pathsBOOLEANtrue
    near_duplicate_distanceFLOAT1.50–10Treat two paths as duplicates if their bidirectional average distance is below this threshold
    round_coordinatesBOOLEANtrue
    decimal_placesINT20–6
    remove_duplicate_pathsoptBOOLEANtrue

    Outputs (2)

    NameTypeDescription
    cleaned_svgSTRING
    statisticsSTRING