Visit ComfyUI Online for ready-to-use ComfyUI environment
Draw text onto images with customizable options, multiple styles, colors, and alignment, including text outlines for emphasis.
The ImageText
node is designed to allow you to draw text onto an image with various customizable options. This node is particularly useful for adding annotations, captions, or any textual information directly onto your images. It supports multiple lines of text, different font styles, sizes, colors, and even text alignment. Additionally, you can add an outline to your text to make it stand out more prominently. This node is essential for AI artists who want to enhance their images with textual elements, providing a high degree of flexibility and control over the appearance of the text.
This parameter specifies the text string that you want to draw on the image. It can include multiple lines separated by newline characters (\n
). The content of this parameter directly affects what will be displayed on the image.
This parameter determines the font style of the text. You need to provide the name of the font file located in the fonts directory. The choice of font can significantly impact the visual appeal of the text.
This parameter sets the alignment of the text. It can be set to values like left
, center
, or right
, determining how the text is aligned within its bounding box. Proper alignment is crucial for ensuring that the text appears as intended, especially when dealing with multiline text.
This parameter defines the size of the font in points. It affects the overall readability and prominence of the text on the image. The size should be chosen based on the resolution of the image and the amount of text to be displayed.
This parameter sets the red component of the text color. It accepts values from 0 to 255, where 0 is no red and 255 is full red. Adjusting this value changes the hue of the text.
This parameter sets the green component of the text color. It accepts values from 0 to 255, where 0 is no green and 255 is full green. Adjusting this value changes the hue of the text.
This parameter sets the blue component of the text color. It accepts values from 0 to 255, where 0 is no blue and 255 is full blue. Adjusting this value changes the hue of the text.
This parameter specifies the thickness of the text outline. A value of 0 means no outline, while higher values increase the thickness. Outlines can help make the text more readable against complex backgrounds.
This parameter sets the red component of the outline color. It accepts values from 0 to 255, where 0 is no red and 255 is full red. Adjusting this value changes the hue of the outline.
This parameter sets the green component of the outline color. It accepts values from 0 to 255, where 0 is no green and 255 is full green. Adjusting this value changes the hue of the outline.
This parameter sets the blue component of the outline color. It accepts values from 0 to 255, where 0 is no blue and 255 is full blue. Adjusting this value changes the hue of the outline.
This parameter controls the transparency of the text. It accepts values from 0.0 to 1.0, where 0.0 is fully transparent and 1.0 is fully opaque. Adjusting this value can help blend the text with the image.
This parameter sets the horizontal margin around the text. It defines the space between the text and the edges of its bounding box. Proper margins ensure that the text does not touch the edges of the image.
This parameter sets the vertical margin around the text. It defines the space between the text and the edges of its bounding box. Proper margins ensure that the text does not touch the edges of the image.
The output of this node is an image with the specified text drawn onto it. The image is returned as a tensor, which can be further processed or saved as needed. This output is crucial for integrating textual elements into your visual projects.
© Copyright 2024 RunComfy. All Rights Reserved.