Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate text-based images with customizable parameters for AI artists to create graphics easily.
The TextImage
node is designed to generate images from text, providing a versatile tool for AI artists to create visually appealing text-based graphics. This node allows you to input text and customize various parameters such as font, size, color, and layout direction, enabling the creation of both horizontal and vertical text images. The primary goal of the TextImage
node is to offer a flexible and user-friendly way to convert textual content into image format, which can be particularly useful for creating custom graphics, annotations, or artistic text renderings.
The text to be rendered into an image. This parameter accepts a string of text, which can include line breaks to create multi-line text images. The content of this text will be displayed in the generated image.
The file path to the TrueType font (.ttf) file to be used for rendering the text. This parameter allows you to choose a specific font style for your text image. Ensure the path is correct to avoid errors.
The size of the font to be used for the text. This parameter determines how large or small the text will appear in the image. The value should be a positive integer, with larger values resulting in larger text.
The color of the text in the image. This parameter accepts a tuple representing the RGB values of the color (e.g., (255, 255, 255) for white). It allows you to customize the appearance of the text to match your design needs.
A boolean parameter that determines the layout direction of the text. If set to True
, the text will be rendered vertically; if False
, it will be rendered horizontally. This option provides flexibility in how the text is displayed.
A boolean parameter that specifies whether the text should have an outline (stroke). If set to True
, the text will be outlined with the specified stroke color and width, adding emphasis and readability.
The color of the text outline (stroke). This parameter accepts a tuple representing the RGB values of the color. It is used only if the stroke
parameter is set to True
.
The width of the text outline (stroke). This parameter determines how thick the outline around the text will be. It is used only if the stroke
parameter is set to True
.
The amount of space between lines of text. This parameter accepts an integer value, allowing you to adjust the line spacing for multi-line text images.
The amount of padding around the text within the image. This parameter accepts an integer value, providing space between the text and the edges of the image.
The generated image containing the rendered text. This output is an image object that can be used in further processing or saved to a file. It represents the final visual result of the text-to-image conversion.
font_path
and font_size
parameters.text_color
and stroke_color
parameters to ensure the text stands out against the background, especially if the image will be used in a complex design.padding
parameter to provide sufficient space around the text, preventing it from being too close to the image edges.spacing
parameter to control the distance between lines, ensuring readability and aesthetic balance.font_path
is correct and that the file exists at the specified location. Ensure the path is absolute or correctly relative to the working directory.text_color
or stroke_color
parameter is not provided in the correct format.text_color
) is given an integer instead.© Copyright 2024 RunComfy. All Rights Reserved.