Nodes/ComfyUI_ezXY/String to Label
ComfyUI Node

String to Label

Render text as a white-on-black image label

By GMapeSplat·Created 3 years ago·Updated 2 years ago· 25
String to Label
    • Label
    input
    font_size45
    clockwise_rotation

    String to Label does exactly what it says: turn a bit of text into an image - white text on a black background - that you can feed into the rest of ComfyUI_ezXY's plotting pipeline as an axis label, or use standalone anywhere you need a text caption as an actual image rather than a string.

    How it works

    Type or wire in input, set a font_size, and pick a clockwise_rotation (0, 90, 180, or 270 degrees). Out comes Label, an image. The rotation option is there specifically for grid labeling: a row of column headers reads fine at 0°, but a column of row headers along the left edge of a plot usually needs to be rotated 90° to fit without eating horizontal space - which is exactly the setup ezXY Assemble Plot expects when you feed it x_labels and y_labels.

    Pair it with Concatenate String if you want to build the label text from a picked value plus a prefix (like "cfg: " glued in front of a number pulled out of Number from List) before rendering it.

    Inputs and outputs

    • input (STRING) - the text to render.
    • font_size (INT, default 45, 1–200) - bigger for a chunky header label, smaller if you're packing a lot of labels into a tight grid.
    • clockwise_rotation - one of 0, 90, 180, or 270 degrees. Use 90 for a vertical row-axis label.
    • Label - the rendered text, as an IMAGE.

    Installing ComfyUI_ezXY

    ComfyUI Manager: search "ComfyUI_ezXY", install, restart. Or manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/GMapeSplat/ComfyUI_ezXY.git
    

    No models, no heavy dependencies - this node just renders text, it doesn't need a font model or anything downloaded.

    Common issues & troubleshooting

    If your label text is getting cut off or overlapping, that's almost always font_size set too large for how much text you're rendering - there's no auto-fit here, so long labels need a smaller size or a shorter string (Concatenate String is your friend for trimming a value down to just what matters, like "7.5" instead of a full sentence).

    This node inherits the pack-wide caveat like everything else in ComfyUI_ezXY: the README states directly that it "does not work with current version of Comfyui," and the project shows real signs of having gone unmaintained for stretches - a 2025 GitHub issue has a user asking to fork a single node out of the repo because it had broken and the author wasn't responding. String to Label is one of the simpler, more self-contained nodes in the pack (no lists, no type-casting patch involved), so it's less likely to be the actual point of failure if your workflow breaks - but if label images come out blank or the wrong size, check that you're actually feeding it a resolved string and not an unconnected wire before assuming the node itself is at fault.

    CategoryezXY/image

    Inputs (3)

    NameTypeDefaultDescription
    inputSTRING
    font_sizeINT451–200
    clockwise_rotationCOMBO4 options: 0, 90, 180, 270

    Outputs (1)

    NameTypeDescription
    LabelIMAGE