Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance images with custom text labels, flexible positioning, font, and color settings for annotations and captions.
The AddLabel node is designed to enhance your images by adding custom text labels. This node allows you to overlay text onto an image or create a new image with the text label positioned above, below, or to the sides of the original image. It provides flexibility in terms of text positioning, font customization, and color settings, making it a powerful tool for annotating images, creating captions, or adding any textual information directly onto your visuals. The node supports various directions for text placement and offers options to adjust the font size, color, and background label color, ensuring that the text is both readable and aesthetically pleasing. This functionality is particularly useful for AI artists who need to add descriptive labels or annotations to their generated images.
This parameter expects an image input that you want to annotate with a text label. The image serves as the base onto which the text will be added.
This integer parameter specifies the x-coordinate for the text's starting position. It determines the horizontal placement of the text on the image. The default value is 10, with a minimum of 0 and a maximum of 4096.
This integer parameter specifies the y-coordinate for the text's starting position. It determines the vertical placement of the text on the image. The default value is 2, with a minimum of 0 and a maximum of 4096.
This integer parameter defines the height of the label area where the text will be placed. It affects the overall size of the label. The default value is 48, with a minimum of 0 and a maximum of 4096.
This integer parameter sets the size of the font used for the text label. It controls how large or small the text appears. The default value is 32, with a minimum of 0 and a maximum of 4096.
This string parameter specifies the color of the text. You can use color names or hexadecimal color codes to define the font color. The default value is "white".
This string parameter specifies the background color of the label area. You can use color names or hexadecimal color codes to define the label color. The default value is "black".
This parameter allows you to select the font used for the text label. Fonts are loaded from the folder ComfyUI/custom_nodes/ComfyUI-KJNodes/fonts
.
This string parameter contains the text that you want to add as a label to the image. The default value is "Text".
This parameter defines the direction in which the label will be added relative to the image. The available options are 'up', 'down', 'left', 'right', and 'overlay'. The default value is 'up'.
This optional string parameter allows you to add a caption to the label. It provides additional text that can be included in the label area. The default value is an empty string.
The output is an image with the added text label. This image is either the original image with an overlay text or a new image with the text label positioned according to the specified direction.
font_color
and label_color
.font_size
and height
parameters to fit the text properly within the label area.direction
parameter to position the label in a way that complements the composition of your image.ComfyUI/custom_nodes/ComfyUI-KJNodes/fonts
directory and that the filename is correctly specified.font_color
or label_color
is not recognized.height
of the label area or reduce the font_size
to ensure the text fits properly.direction
parameter is not one of the accepted options.direction
parameter: 'up', 'down', 'left', 'right', 'overlay'.© Copyright 2024 RunComfy. All Rights Reserved.