ComfyUI > Nodes > Comfyui_PDuse > PD_Text Overlay Node

ComfyUI Node: PD_Text Overlay Node

Class Name

PD_Text Overlay Node

Category
image
Author
7BEII (Account age: 453days)
Extension
Comfyui_PDuse
Latest Updated
2026-03-25
Github Stars
0.05K

How to Install Comfyui_PDuse

Install this extension via the ComfyUI Manager by searching for Comfyui_PDuse
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui_PDuse 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

PD_Text Overlay Node Description

Enhances images by overlaying customizable text using PIL and PyTorch for AI art personalization.

PD_Text Overlay Node:

The PD_Text Overlay Node is designed to enhance your images by overlaying text onto them, providing a versatile tool for adding annotations, captions, or artistic text elements. This node allows you to customize various aspects of the text overlay, such as font type, size, color, and positioning, ensuring that the text integrates seamlessly with your image. By leveraging the capabilities of the Python Imaging Library (PIL) and PyTorch, this node processes images efficiently and supports a wide range of font styles, making it a valuable asset for AI artists looking to personalize their visual creations with textual elements.

PD_Text Overlay Node Input Parameters:

image

This parameter represents the input image onto which the text will be overlaid. It is expected to be in a format compatible with PyTorch tensors, ensuring smooth processing and manipulation within the node.

text

This parameter specifies the string of text to be overlaid on the image. By default, it is set to "Hello, ComfyUI!" but can be customized to any desired message, allowing for personalized annotations or captions.

font_size

This parameter determines the size of the text to be overlaid. It is a floating-point value with a default of 24.0, allowing for precise control over the text's appearance. Adjusting this value will impact the readability and prominence of the text on the image.

font_color

This parameter defines the color of the text in hexadecimal format, with a default value of "#000000" (black). It allows you to choose any color that complements or contrasts with the image, enhancing the visual impact of the text.

position_x

This parameter controls the horizontal position of the text on the image, expressed as a floating-point value between 0.0 and 1.0. The default value is 0.5, centering the text horizontally. Adjusting this value allows for precise placement of the text along the x-axis.

position_y

This parameter controls the vertical position of the text on the image, expressed as a floating-point value between 0.0 and 1.0. The default value is 0.5, centering the text vertically. Adjusting this value allows for precise placement of the text along the y-axis.

letter_gap

This parameter specifies the spacing between individual characters in the text, with a default value of 0.0. It can be adjusted between -10.0 and 10.0 to either condense or expand the text, affecting its overall appearance and readability.

font_name

This parameter allows you to select the font style for the text overlay. It provides a list of available TrueType font files (.ttf) found in the designated fonts directory. If no fonts are found, a default option such as "Arial.ttf" is provided, ensuring that text can always be rendered.

PD_Text Overlay Node Output Parameters:

IMAGE

The output parameter is the modified image with the text overlay applied. This image retains the original format but now includes the specified text, allowing for further processing or direct use in your projects. The text overlay is seamlessly integrated, maintaining the quality and integrity of the original image.

PD_Text Overlay Node Usage Tips:

  • Ensure that the font file you wish to use is located in the designated fonts directory to avoid defaulting to a basic font style.
  • Experiment with different font sizes and colors to achieve the desired visual effect and ensure that the text is legible against the image background.
  • Use the position_x and position_y parameters to strategically place text in areas of the image that enhance the overall composition and message.

PD_Text Overlay Node Common Errors and Solutions:

Warning: Unable to load font file <font_path>, using default font.

  • Explanation: This warning occurs when the specified font file cannot be found or loaded, causing the node to revert to a default font.
  • Solution: Ensure that the font file is correctly named and located in the designated fonts directory. Verify that the file is a valid TrueType font (.ttf) and that the path is correctly specified in the node settings.

PD_Text Overlay Node Related Nodes

Go back to the extension to check out more related nodes.
Comfyui_PDuse
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.

PD_Text Overlay Node