Nodes/ComfyUI-Meld/Meld Infinite Heart Generator
ComfyUI Node

Meld Infinite Heart Generator

Hearts everywhere — the pack's one-off decoration node

By HappyOnigiri·Created 7 months ago·Updated 5 months ago· 5
Meld Infinite Heart Generator
  • image
  • mask
  • IMAGE
size64
opacity1.00
padding0
random_rotationfalse
placementInside

Some nodes earn their place by solving a workflow problem. Meld Infinite Heart Generator earns its place by putting hearts on things. It's the sandbox oddball of ComfyUI-Meld - a fun, self-contained decoration node that tiles heart shapes across an image, places them along edges, or auto-orients them around a mask. If you've ever wanted a background sprinkled with hearts or a character ringed by them, this is the tool.

You don't need the Image Manager or any of the pack's database machinery for this one. It's image in, image out.

How it works

You give it an image and it draws heart sprites at a grid step of size + padding. The interesting part is the placement modes, which use an optional mask to decide where hearts can land:

  • Inside - grid-tiles hearts but only draws ones fully contained in the mask area (or the whole image, if no mask).
  • Overlap - same grid, but hearts that partially touch the mask count.
  • Edge - traces the mask's boundary and places hearts along the contour line.
  • Edge Inward - like Edge, but auto-rotates each heart to face inward toward the masked subject. That's the one you want for "surround this character with hearts."

The controls that matter

  • size (default 64, 8–1024) - heart size in pixels.
  • opacity (default 1.0, 0–1) - transparency. Lower it for a subtle texture instead of a loud one.
  • padding (default 0, −512 to 1024) - spacing between hearts; grid step is size + padding. Negative values overlap hearts for dense packing, positive values scatter them.
  • random_rotation - randomizes each heart's angle, which stops a tiled look from feeling too mechanical.
  • placement + optional mask - described above; without a mask, "Edge" modes have no boundary to follow, so connect one.

Output is a single IMAGE - the decorated image, ready for Save Image.

Good uses

  • Background texture: size small, opacity low, random rotation on, Overlap with no mask.
  • Frame decoration: a mask of the subject, Edge Inward, moderate size - hearts ring the character.
  • Watermark-ish flourish on batches, since it handles batch inputs.

It's a tool with a narrow brief, and that's fine - not every node needs to be a general-purpose monster. This one is for the "make it cuter" pass.

Installing it

Same pack, same path:

  • ComfyUI Manager → search "Meld" → install, or
  • comfy node install HappyOnigiri/ComfyUI-Meld, or
  • cd ComfyUI/custom_nodes && git clone https://github.com/HappyOnigiri/ComfyUI-Meld.git && cd ComfyUI-Meld && pip install -r requirements.txt then restart.

No models, no downloads, no inference - instant vector-drawing work. One honest take: this is the pack's most novelty-flavored node, so before you build it into a serious pipeline, make sure heart placement is actually what your pipeline needs. For that one specific job, though, it's the fastest thing around - no manual heart stamping in an image editor, no procedural shader setup.

CategoryMeld/Sandbox

Inputs (7)

NameTypeDefaultDescription
imageIMAGE
sizeINT648–1024
opacityFLOAT1.000–1
paddingINT0-512–1024
random_rotationBOOLEANfalse
placementCOMBOInside4 options: Inside, Overlap, Edge, Edge Inward
maskoptMASK

Outputs (1)

NameTypeDescription
IMAGEIMAGE