ComfyUI > Nodes > Advanced Text Overlay > Advanced Text Overlay

ComfyUI Node: Advanced Text Overlay

Class Name

Advanced Text Overlay

Category
Advanced Text Overlay
Author
scofano (Account age: 3400days)
Extension
Advanced Text Overlay
Latest Updated
2026-03-23
Github Stars
0.02K

How to Install Advanced Text Overlay

Install this extension via the ComfyUI Manager by searching for Advanced Text Overlay
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Advanced Text Overlay in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Advanced Text Overlay Description

Enhances visuals with customizable text overlays, animations, and precise stroke alignment.

Advanced Text Overlay:

The Advanced Text Overlay node is designed to enhance your visual projects by allowing you to overlay text with a variety of customizable features. This node is particularly beneficial for creating dynamic and visually appealing text presentations in images and videos. It offers capabilities such as fill and stroke alpha adjustments, shadow and background box animations, and pixel-perfect stroke alignment for multiline text. The node ensures even stroke width for crisper edges and defaults to a middle vertical alignment for balanced text placement. Additionally, it supports batch animation, where the initial frames are used for animation, and the final pose is held for the remainder of the video. This node is ideal for AI artists looking to add professional-grade text overlays to their work without needing extensive technical knowledge.

Advanced Text Overlay Input Parameters:

text

The text parameter allows you to specify the content that will be overlaid on your image or video. This can include any string of characters, and it supports multiline text by recognizing newline characters. The text you input here will be the primary focus of the overlay.

font_size

This parameter determines the size of the text in the overlay. It directly affects the visibility and prominence of the text, with larger sizes making the text more noticeable. The font size should be chosen based on the overall design and the amount of space available in the image or video.

fill_color_hex

This parameter specifies the color of the text using a hexadecimal color code. It allows you to choose any color for the text, providing flexibility in matching the overlay with the rest of your design.

fill_alpha

The fill_alpha parameter controls the transparency of the text color. A value of 1 means the text is fully opaque, while a value of 0 means it is completely transparent. Adjusting this parameter can help blend the text with the background or make it stand out.

stroke_enable

This boolean parameter determines whether a stroke (outline) is applied to the text. Enabling the stroke can enhance the text's readability, especially against complex backgrounds.

stroke_color_hex

When stroke_enable is true, this parameter sets the color of the stroke using a hexadecimal color code. It allows you to choose a contrasting color to make the text outline more visible.

stroke_alpha

This parameter controls the transparency of the stroke color. Similar to fill_alpha, it ranges from 0 (completely transparent) to 1 (fully opaque), allowing you to adjust the stroke's visibility.

stroke_thickness

Stroke_thickness defines the width of the text outline. A thicker stroke can make the text more prominent, while a thinner stroke provides a subtle enhancement.

horizontal_alignment

This parameter sets the horizontal alignment of the text within the overlay. Options include "left," "center," and "right," allowing you to position the text according to your design needs.

vertical_alignment

Vertical_alignment determines the vertical positioning of the text. Options include "top," "middle," and "bottom," providing flexibility in aligning the text within the overlay space.

bg_enable

A boolean parameter that, when enabled, adds a background box behind the text. This can help the text stand out against busy or colorful backgrounds.

bg_color_hex

When bg_enable is true, this parameter sets the color of the background box using a hexadecimal color code. It allows you to choose a color that complements or contrasts with the text.

bg_alpha

This parameter controls the transparency of the background box color, ranging from 0 (transparent) to 1 (opaque). Adjusting this can help integrate the background box with the overall design.

bg_padding

Bg_padding defines the amount of space between the text and the edges of the background box. Increasing this value can create a more pronounced background effect.

bg_radius

This parameter sets the corner radius of the background box, allowing you to create rounded corners for a softer appearance.

shadow_enable

A boolean parameter that, when enabled, adds a shadow effect to the text. This can create a sense of depth and make the text more visually appealing.

shadow_color_hex

When shadow_enable is true, this parameter sets the color of the shadow using a hexadecimal color code. Choosing a darker color can enhance the shadow effect.

shadow_alpha

This parameter controls the transparency of the shadow color, ranging from 0 (transparent) to 1 (opaque), allowing you to adjust the shadow's intensity.

shadow_distance

Shadow_distance defines how far the shadow is offset from the text. Increasing this value can create a more dramatic shadow effect.

Advanced Text Overlay Output Parameters:

IMAGE

The output of the Advanced Text Overlay node is an IMAGE, which is the original image or video frame with the specified text overlay applied. This output is crucial for integrating text into your visual projects, providing a final product that includes all the customizations and enhancements specified in the input parameters.

Advanced Text Overlay Usage Tips:

  • Experiment with different font sizes and colors to ensure your text is readable and complements the overall design.
  • Use the stroke and shadow features to enhance text visibility against complex backgrounds.
  • Adjust the background box settings to create a distinct separation between the text and the image, especially in busy scenes.
  • Utilize the batch animation feature to create dynamic text presentations in videos, holding the final pose for a polished finish.

Advanced Text Overlay Common Errors and Solutions:

Invalid Hex Color Code

  • Explanation: This error occurs when the color code provided is not a valid hexadecimal format.
  • Solution: Ensure that all color codes are in the correct format, starting with a # followed by six hexadecimal digits.

Text Overflow

  • Explanation: This error happens when the text size exceeds the available space in the image or video frame.
  • Solution: Reduce the font size or adjust the padding and alignment settings to fit the text within the designated area.

Unsupported Font

  • Explanation: This error indicates that the specified font is not available or supported.
  • Solution: Verify that the font is correctly installed and accessible by the node, or choose a different font that is supported.

Advanced Text Overlay Related Nodes

Go back to the extension to check out more related nodes.
Advanced Text Overlay
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Advanced Text Overlay