Visit ComfyUI Online for ready-to-use ComfyUI environment
Overlay text onto images with customization options for annotations, captions, and more.
The Add Text To Image node allows you to overlay text onto an image with various customization options. This node is particularly useful for adding annotations, captions, or any textual information directly onto your images. It supports different fonts, sizes, colors, and positioning, making it versatile for a wide range of artistic and practical applications. Additionally, it can center the text, rotate it, and handle multiple operating systems' default fonts, ensuring compatibility and ease of use across different platforms.
This parameter represents the image onto which the text will be added. It should be a valid image object that you want to annotate or caption.
This parameter specifies the path to the TrueType font (.ttf) file that will be used for the text. The font file determines the style of the text, and you can use any .ttf file available on your system.
This parameter defines the size of the text in points. It controls how large or small the text appears on the image. The size should be a positive integer, with larger values resulting in bigger text.
This parameter sets the x-coordinate for the text's starting position on the image. It determines the horizontal placement of the text. The value should be an integer, with 0 representing the leftmost position.
This parameter sets the y-coordinate for the text's starting position on the image. It determines the vertical placement of the text. The value should be an integer, with 0 representing the topmost position.
This parameter contains the actual text string that you want to overlay on the image. It can be any string of characters, including letters, numbers, and symbols.
This parameter specifies the color of the text in RGB format. It should be a tuple of three integers, each ranging from 0 to 255, representing the red, green, and blue components of the color.
This boolean parameter determines whether the text should be centered at the (x, y) coordinates. If set to True, the text will be centered; otherwise, it will start from the specified coordinates. The default value is False.
This parameter sets the rotation angle for the text in degrees. It allows you to rotate the text around its starting point. The value should be an integer, with positive values rotating the text clockwise and negative values rotating it counterclockwise. The default value is 0.
The output parameter is the modified image object with the text overlay. This image will have the text added according to the specified parameters, and it can be used for further processing or saving.
© Copyright 2024 RunComfy. All Rights Reserved.