ComfyUI Node
ASCII Art
ASCII art: maps brightness to characters and renders them with a monospace font. Colour can be fixed, fade with brightness or be taken from the source image.
ASCII Art
- image
- image
- mask
- text
◄charset .:-=+*#%@►
◄sort_by_densityfalse►
◄font_size12►
◄line_spacing1.00►
◄black_point0.10►
◄white_point0.95►
◄gamma1.00►
◄invertfalse►
◄color_modefade►
◄fg_color#33FF66►
◄bg_color#000000►
◄font_path►
CategoryX4Lch3mist/image
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| charset | STRING | .:-=+*#%@ | Characters from dark to bright. The first one (usually a space) is used for the darkest areas. |
| sort_by_density | BOOLEAN | false | Re-order the charset by how much ink each glyph really has. Handy for custom charsets. |
| font_size | INT | 124–128 | Character height in pixels. Smaller = more detail, bigger = more readable. |
| line_spacing | FLOAT | 1.000.6–2 | — |
| black_point | FLOAT | 0.100–1 | Everything darker than this becomes empty background. |
| white_point | FLOAT | 0.950–1 | — |
| gamma | FLOAT | 1.000.1–5 | — |
| invert | BOOLEAN | false | Use for dark text on a light background. |
| color_mode | COMBO | fade | fade: fg colour, dimmer in dark areas | fixed: one colour | source image: each character takes the colour of the picture. |
| fg_color | STRING | #33FF66 | — |
| bg_color | STRING | #000000 | — |
| font_pathopt | STRING | Optional path to a .ttf/.otf monospace font. Empty = Consolas / DejaVu Sans Mono / built-in. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| text | STRING | — |