Visit ComfyUI Online for ready-to-use ComfyUI environment
Render text on images with optional outline for visually appealing text overlays in AI-generated artwork.
The ImageTextOutlined
node is designed to render text onto an image with an optional outline, providing a visually appealing way to add text to your images. This node is particularly useful for creating text overlays that stand out against various backgrounds, ensuring readability and aesthetic appeal. By leveraging this node, you can customize the text's font, size, color, and alignment, as well as add an outline with adjustable color and thickness. This flexibility makes it ideal for creating captions, labels, or any other text-based elements in your AI-generated artwork.
The text to be rendered on the image. This parameter accepts a string and supports multiline input, allowing you to add multiple lines of text. The content of this text will be displayed exactly as provided.
The font to be used for rendering the text. This parameter accepts the name of a font file available in the system's fonts directory. The choice of font can significantly impact the visual style of the text.
The alignment of the text. This parameter can be set to "left", "center", or "right", determining how the text is aligned within its bounding box. Proper alignment ensures that the text appears as intended in the final image.
The size of the text. This parameter is an integer that specifies the font size in points. The default value is 28, with a minimum value of 1. Adjusting the size allows you to scale the text to fit your design needs.
The red component of the text color. This parameter is an integer ranging from 0 to 255, with a default value of 255. It controls the intensity of the red color in the text.
The green component of the text color. This parameter is an integer ranging from 0 to 255, with a default value of 255. It controls the intensity of the green color in the text.
The blue component of the text color. This parameter is an integer ranging from 0 to 255, with a default value of 255. It controls the intensity of the blue color in the text.
The opacity of the text. This parameter is a float ranging from 0.0 (completely transparent) to 1.0 (completely opaque). It allows you to adjust the transparency of the text.
The horizontal margin around the text. This parameter is an integer that specifies the amount of space to be added to the left and right of the text. It helps in positioning the text within the image.
The vertical margin around the text. This parameter is an integer that specifies the amount of space to be added to the top and bottom of the text. It helps in positioning the text within the image.
The output is an image with the rendered text. This image is returned as a tensor, which can be further processed or directly used in your AI art projects. The text will appear on the image with the specified font, size, color, alignment, and optional outline, providing a ready-to-use visual element.
© Copyright 2024 RunComfy. All Rights Reserved.