Nodes/ComfyUI-ZImagePowerNodes/⚡| Image Labeler
ComfyUI Node

⚡| Image Labeler

Adds a label with custom text to the image.

By martin-rizzo·Created 7 months ago·Updated a day ago· 346
⚡| Image Labeler
  • image
  • divider1
  • IMAGE
enable_label
text
text_color#FF0000
background_color#FFFFFF
font_nameroboto_slab
font_size64
font_scalenone
label_positionbottom_right
label_padding-1
min_label_width0
min_label_height0
Category⚡Z-Image/utils

Inputs (13)

NameTypeDefaultDescription
imageIMAGEInput image to which the label will be added.
enable_labelBOOLEANWhen enabled, applies the label configuration to the image. If disabled, the image will be displayed without label.
divider1ZIPN_SEPARATOR
textSTRINGText to be displayed in the label.
text_colorSTRING#FF0000Color of the label text in hexadecimal format (e.g. #FFFFFF for white).
background_colorSTRING#FFFFFFBackground color of the label in hexadecimal format (e.g. #000000 for black).
font_nameCOMBOroboto_slabThe font to be used for the label text.
font_sizeINT648–256Size of the font used for the label text, the final size will be adjusted automatically in relation to the image height.
font_scaleCOMBOnonePosition of the label on the image, specifying the corner or edge alignment.
label_positionCOMBObottom_rightPosition of the label on the image, specifying the corner or edge alignment.
label_paddingINT-1-1–100Padding around the label text, measured in pixels. Set this value to -1 for automatic padding adjustment based on font size.
min_label_widthINT0Minimum width of the label area in pixels, ensuring the label has enough width even if the text is so short.
min_label_heightINT0Minimum height of the label area in pixels, ensuring the label has enough height even if the font is so small.

Outputs (1)

NameTypeDescription
IMAGEIMAGEOutput image with the added label containing the specified text.