Nodes/ComfyUI-Light-Tool/Light-Tool: Simple Image Overlay
ComfyUI Node

Light-Tool: Simple Image Overlay

Watermarks and stamps without a mask node in sight

By ihmily·Created 2 years ago·Updated 4 months ago· 20
Light-Tool: Simple Image Overlay
  • foreground
  • background
  • IMAGE
centertrue
left0
top0

The pack's other overlay node (Image Overlay) requires a mask and matching sizes - fiddly. This one is the "just slap image A on image B" node: foreground on background, centered or at an offset, no mask input needed because it uses the foreground's own alpha. If you've ever wanted to drop a logo on a render or stamp a label onto a canvas without building a mask pipeline, this is the shortcut.

How it works

You feed it a foreground and a background (both IMAGE). If the foreground isn't RGBA it's converted to RGBA automatically, and that alpha channel becomes the paste mask - so transparent PNGs (logos, stickers, cutouts) composite naturally, and opaque images just overwrite. Two positioning knobs:

  • center (default true) - ignores everything and centers the foreground on the background.
  • left / top - when center is off, these are the pixel offsets from the top-left corner (both default 0).

So a centered watermark is literally "wire two images, leave everything alone." An off-center one is "uncheck center, set left/top." The output is a single IMAGE composite.

Two things worth knowing about the mechanics. First, the background can be a batch and each frame gets the same foreground pasted onto it - handy for stamping one badge across a sequence. Second, the foreground is treated as a single image: keep it to one frame, or you'll confuse the paste.

Where it fits

The obvious jobs: watermarks and branding, labels and captions, stickers on cards, or pasting a smaller render onto a Solid Color Background canvas from this same pack to build a product shot. Because there's no mask step, it also slots into automation where you're stamping the same graphic onto a stream of outputs. If you need blending - soft edges, mix percentages, multi-layer compositing - this is the wrong tool; that's a compositor's job, not a paster's.

Installing it

Part of ComfyUI-Light-Tool by Hmily. ComfyUI Manager → search "ComfyUI-Light-Tool" → Install → restart, or:

cd ComfyUI/custom_nodes
git clone https://github.com/ihmily/ComfyUI-Light-Tool
pip install -r requirements.txt
# restart ComfyUI

Pillow-only under the hood, no models, offline.

Where people get burned

  • center overrides your offsets. Set left/top, forget to uncheck center, and the node quietly ignores you. Uncheck center first.
  • Opaque foregrounds cover everything. If your foreground has no alpha (a plain JPEG), it pastes as a solid rectangle. Use a transparent PNG or an RGBA image.
  • Multi-frame foregrounds. The node expects a single foreground image; a batch foreground can produce a broken paste. Keep it to one.
  • Positioning can go negative-looking. Offsets are clamped at 0 minimum, so you can't push the foreground partially off the top/left edge to crop it - position within the canvas.

Simple, predictable, and genuinely useful for anyone who stamps graphics onto images regularly. It's the "no mask required" overlay this pack is named after.

CategoryComfyUI-Light-Tool/image/compositing

Inputs (5)

NameTypeDefaultDescription
foregroundIMAGE
backgroundIMAGE
centerBOOLEANtrue
leftINT0
topINT0

Outputs (1)

NameTypeDescription
IMAGEIMAGE