ComfyUI Extension: ComfyUI-TextOverlay
A custom node for ComfyUI that adds text overlay to images, with options for text and background color, opacity, and vertical positioning.
Custom Nodes (1)
README
ComfyUI-TextOverlay
A custom node for ComfyUI that adds text overlay to images, with options for text and background color, opacity, vertical positioning, and custom font selection.
Features
- Add customizable text overlays to images
- Choose from predefined text and background colors
- Adjust background opacity
- Control vertical positioning of the text
- Use custom fonts by specifying the font file path
Installation
-
Clone this repository into your ComfyUI custom_nodes folder:
git clone https://github.com/neeltheninja/ComfyUI-TextOverlay.git
-
Restart ComfyUI or reload custom nodes
Usage
- In ComfyUI, add the "Add Text Overlay" node to your workflow
- Connect an image input to the node
- Set your desired text, colors, positioning options, and font path
- Run your workflow to see the result!
Parameters
image
: Input imagetext
: Text to overlay on the imagevertical_position
: Vertical position of the text (-1 to 1)text_color_option
: Color of the text (White, Black, Red, Green, Blue)bg_color_option
: Color of the background (Black, White, Red, Green, Blue)bg_opacity
: Opacity of the background (0 to 1)font_path
: Path to the TTF font file
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.