Nodes/AAA Metadata System/Text Overlay Node v04
ComfyUI Node

Text Overlay Node v04

A ComfyUI node in image/text with 32 inputs and 2 outputs.

By EricRollei·Created 9 months ago·Updated 8 months ago· 12
Text Overlay Node v04
  • reference_image
  • image
  • preview
textYour text here
width512
height512
fontC059 BdIta
font_size32
color#FFFFFF
aligncenter
v_alignmiddle
transparent_backgroundtrue
background_color#000000
background_opacity100
x_offset_pct0.0
y_offset_pct0.0
line_spacing1.2
padding20
wrap_width0
outline_color
outline_width1
text_file
boldfalse
italicfalse
shadowfalse
shadow_color#000000
shadow_offset2
layer_blend_modenormal
text_effectnone
gradient_color#0000FF
show_font_previewfalse
preview_textThe quick brown fox jumps over the lazy dog
fonts_per_page30
preview_page1
Categoryimage/text

Inputs (32)

NameTypeDefaultDescription
textSTRINGYour text here
widthINT51216–8192
heightINT51216–8192
fontCOMBOC059 BdIta45 options: C059 BdIta, C059 Bold, C059 Italic, C059 Roman, D050000L, DejaVuSans, +39
font_sizeINT328–256
colorSTRING#FFFFFF
alignCOMBOcenter3 options: left, center, right
v_alignCOMBOmiddle3 options: top, middle, bottom
transparent_backgroundBOOLEANtrueUse a transparent background (if false, uses background color)
background_colorSTRING#000000Background color when not using transparent background
background_opacityINT1000–100Background opacity percentage (0-100%)
x_offset_pctFLOAT0.0-100–100Horizontal offset as percentage of image width (-100% to 100%)
y_offset_pctFLOAT0.0-100–100Vertical offset as percentage of image height (-100% to 100%)
line_spacingFLOAT1.20.5–3
paddingINT200–500
wrap_widthINT00–8192Max characters per line (0 = auto based on width)
reference_imageoptIMAGEOptional image to get dimensions from
outline_coloroptSTRING
outline_widthoptINT11–10
text_fileoptSTRING
boldoptBOOLEANfalse
italicoptBOOLEANfalse
shadowoptBOOLEANfalse
shadow_coloroptSTRING#000000
shadow_offsetoptINT21–10
layer_blend_modeoptCOMBOnormalHow the text layer should blend with background when composited
text_effectoptCOMBOnoneSpecial effect to apply to text
gradient_coloroptSTRING#0000FF
show_font_previewoptBOOLEANfalseGenerate a preview image showing all available fonts
preview_textoptSTRINGThe quick brown fox jumps over the lazy dogSample text to use for font preview
fonts_per_pageoptINT305–100Number of fonts to show per page in font preview
preview_pageoptINT1Current page to show in font preview

Outputs (2)

NameTypeDescription
imageIMAGE
previewIMAGE