Visit ComfyUI Online for ready-to-use ComfyUI environment
Node for adding multiline text to images with customizable appearance for enhanced visual communication.
The ImageTextMultiline
node is designed to allow you to add multiline text to an image with ease. This node is particularly useful for creating images that require text annotations, captions, or any form of textual information spread across multiple lines. It provides a straightforward way to customize the appearance of the text, including font type, size, color, alignment, and margins. By using this node, you can ensure that your text is rendered clearly and aesthetically on your images, enhancing the overall visual appeal and communicative power of your artwork.
The text
parameter is the string of characters that you want to display on the image. This can include multiple lines separated by newline characters (\n
). The content of this parameter directly affects what is shown on the image.
The font
parameter specifies the typeface to be used for the text. This should be the name of a font file available in the system's font directory. The choice of font can significantly impact the readability and style of the text.
The align
parameter determines the alignment of the text within its bounding box. Options typically include left
, center
, and right
. This setting affects how the text is positioned horizontally.
The size
parameter sets the font size of the text. This is an integer value that determines how large or small the text appears. The size should be chosen based on the desired readability and the amount of space available on the image.
The red
parameter specifies the red component of the text color. This is an integer value ranging from 0 to 255, where 0 is no red and 255 is full red. This parameter, along with green
and blue
, defines the color of the text.
The green
parameter specifies the green component of the text color. This is an integer value ranging from 0 to 255, where 0 is no green and 255 is full green. This parameter, along with red
and blue
, defines the color of the text.
The blue
parameter specifies the blue component of the text color. This is an integer value ranging from 0 to 255, where 0 is no blue and 255 is full blue. This parameter, along with red
and green
, defines the color of the text.
The alpha
parameter sets the transparency level of the text. This is a float value between 0.0 and 1.0, where 0.0 is fully transparent and 1.0 is fully opaque. Adjusting this parameter allows you to control the visibility of the text.
The margin_x
parameter defines the horizontal margin around the text. This is an integer value that adds space to the left and right of the text, ensuring it does not touch the edges of the image.
The margin_y
parameter defines the vertical margin around the text. This is an integer value that adds space above and below the text, ensuring it does not touch the edges of the image.
The IMAGE
output parameter is the resulting image with the multiline text applied. This output is an image tensor that can be used in further image processing or directly saved and displayed. The text will appear on the image according to the specified input parameters, ensuring a customized and visually appealing result.
font
parameter points to a valid font file in your system to avoid errors.align
parameter to properly position your text, especially when dealing with multiline text to maintain readability.size
, red
, green
, blue
, and alpha
parameters to match the text style with the overall theme of your image.margin_x
and margin_y
to prevent the text from being too close to the image edges, which can improve the overall aesthetics.font
parameter could not be located in the system's font directory.red
, green
, blue
) is set to a value outside the range of 0 to 255. - Solution: Check and correct the color values to ensure they are within the valid range of 0 to 255.size
parameter is set to a value that is too large for the image dimensions.alpha
parameter is set to a value outside the range of 0.0 to 1.0.alpha
value to be within the valid range of 0.0 to 1.0.© Copyright 2024 RunComfy. All Rights Reserved.