Visit ComfyUI Online for ready-to-use ComfyUI environment
Add custom text to images with various parameters for font, position, alignment, and color, enhancing visual content creatively.
The Image Text Overlay node allows you to add custom text to an image, providing a powerful tool for creating annotated images, memes, or any visual content that requires text integration. This node is designed to be user-friendly, enabling you to specify various parameters such as font size, position, font type, alignment, and color of the text. By converting images between tensor and PIL formats, it ensures compatibility with various image processing workflows. The main goal of this node is to offer a flexible and efficient way to overlay text on images, enhancing your creative projects with personalized text elements.
This parameter expects an image input in tensor format. The image serves as the canvas on which the text will be overlaid.
This parameter is a string that represents the text you want to overlay on the image. It supports multiline text and has a default value of "Hello".
This integer parameter specifies the size of the font for the text. It ranges from a minimum of 1 to a maximum of 256, with a default value of 16. Adjusting the font size will impact the visibility and emphasis of the text on the image.
This integer parameter defines the x-coordinate for the text's starting position on the image. The default value is 0. Changing this value will move the text horizontally across the image.
This integer parameter defines the y-coordinate for the text's starting position on the image. The default value is 0. Changing this value will move the text vertically across the image.
This string parameter specifies the path to the font file (e.g., "arial.ttf") to be used for the text. The default value is "arial.ttf". Using different fonts can significantly alter the appearance and style of the text.
This parameter determines the alignment of the text relative to the x-coordinate. It can be "left", "right", or "center", with a default value of "left". Adjusting the alignment helps in positioning the text more precisely according to your design needs.
This integer parameter represents the color of the text in hexadecimal format (e.g., 0xFFFFFF for white). It ranges from 0 to 0xFFFFFF, with a default value of 0 (black). Changing the color can enhance the text's visibility and aesthetic appeal on the image.
The output is an image tensor with the specified text overlaid on it. This output can be used in further image processing workflows or saved as a final annotated image.
© Copyright 2024 RunComfy. All Rights Reserved.