Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-PainterNodes > Painter Text Overlay

ComfyUI Node: Painter Text Overlay

Class Name

PainterTextOverlay

Category
PainterNodes
Author
princepainter (Account age: 1255days)
Extension
ComfyUI-PainterNodes
Latest Updated
2026-07-14
Github Stars
0.14K

How to Install ComfyUI-PainterNodes

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

Painter Text Overlay Description

Overlay text onto images with customizable options for positioning, font size, and color.

Painter Text Overlay:

The PainterTextOverlay node is designed to enhance your images by overlaying text onto them, providing a simple yet powerful way to add annotations, captions, or any textual information directly onto your visual content. This node is particularly beneficial for AI artists who wish to personalize their artwork or convey additional context through text. By leveraging this node, you can seamlessly integrate text into images with customizable options for positioning, font size, and color, ensuring that the text complements the visual aesthetics of your artwork. The node's primary function is to take an input image and overlay specified text at a designated position, with the ability to adjust the text's appearance to suit your creative needs.

Painter Text Overlay Input Parameters:

image

The image parameter is the primary input for the node, representing the image onto which the text will be overlaid. This parameter accepts an image tensor, which serves as the canvas for the text overlay operation. The image should be in a compatible format that the node can process, typically a 3D or 4D tensor representing the image data.

text

The text parameter specifies the string of text you wish to overlay on the image. This parameter allows you to input any textual content, such as captions or annotations, that you want to appear on the image. The default value is "video-1", and it does not support multiline text, meaning the text will be rendered in a single line.

x_margin

The x_margin parameter determines the horizontal margin from the left edge of the image where the text will be placed. It is an integer value with a default of 50, and it can range from 0 to 8192. Adjusting this parameter allows you to control the horizontal positioning of the text on the image.

y_margin

The y_margin parameter sets the vertical margin from the top edge of the image where the text will be positioned. Similar to x_margin, it is an integer value with a default of 20, and it can range from 0 to 8192. This parameter helps you control the vertical placement of the text on the image.

font_size

The font_size parameter specifies the size of the font used for the text overlay. It is an integer value with a default of 50, and it can range from 8 to 256. Adjusting the font size allows you to ensure that the text is legible and appropriately scaled for the image.

font_color

The font_color parameter defines the color of the text in the overlay. It accepts a color value in various formats, including named colors, hexadecimal strings, or RGB tuples. The default color is "#abdb29". This parameter allows you to customize the text color to match or contrast with the image's color scheme.

Painter Text Overlay Output Parameters:

image

The image output parameter is the resulting image after the text overlay has been applied. This output is an image tensor that includes the original image with the specified text overlaid at the designated position and with the chosen font size and color. The output image retains the same format as the input image, ensuring compatibility with subsequent processing or display.

Painter Text Overlay Usage Tips:

  • To ensure the text is clearly visible, choose a font color that contrasts well with the background of the image. If the image background is dark, opt for a lighter font color, and vice versa.
  • Experiment with different font sizes and margins to find the optimal placement and readability for your text. This can help in making sure the text does not obscure important parts of the image.
  • Utilize the x_margin and y_margin parameters to position the text strategically, such as aligning it with specific elements in the image or placing it in areas with less visual clutter.

Painter Text Overlay Common Errors and Solutions:

Font file not found

  • Explanation: This error occurs when the node cannot locate a suitable font file from the predefined list of font paths.
  • Solution: Ensure that at least one of the font paths specified in the _get_font method exists on your system. You may need to install additional fonts or modify the font paths to match the fonts available on your system.

Invalid color format

  • Explanation: This error arises when the font_color parameter is provided in an unrecognized format.
  • Solution: Verify that the color is specified in a valid format, such as a named color, a hexadecimal string (e.g., "#ff0000"), or an RGB tuple (e.g., "255,0,0"). Correct any formatting issues and try again.

Text is not visible

  • Explanation: The text may not be visible if it is rendered in the same color as the background or if the font size is too small.
  • Solution: Adjust the font_color to ensure contrast with the background, and increase the font_size if necessary to improve visibility.

Painter Text Overlay Related Nodes

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

Painter Text Overlay