Nodes/Allor Plugin/ImageContainerInheritanceAdd
ComfyUI Node

ImageContainerInheritanceAdd

A canvas that inherits your image's size, then grows it

By Nourepide·Created 3 years ago·Updated 2 years ago· 295
ImageContainerInheritanceAdd
  • images
  • IMAGE
add_width0
add_height0
red255
green255
blue255
alpha0.00
method

If ImageContainer is "new document, exact size," then ImageContainerInheritanceAdd is "new document, my image's size, plus a margin." You feed it an image and it builds a blank RGBA canvas whose dimensions come from that image - then adds add_width and add_height on top. It's the node you reach for when you want a frame around your content, or a canvas exactly N pixels bigger than what you're about to paste onto it.

How it works

The node reads the height and width of the first image in the batch (images[0]), adds your two offsets, and creates a solid-color RGBA canvas at the resulting size. Note it only ever looks at the first frame's dimensions, even if you pass a batch - which is why the method input exists.

Inputs that matter:

  • images - any IMAGE; only its first frame's size is used.
  • add_width / add_height - pixels added to that size, default 0. Want a 64px border? Set both to 128.
  • red / green / blue / alpha - the container's fill color. Same trap as its sibling: alpha defaults to 0 (transparent), not 1.
  • method - single returns just one container (ignore batch length); for_each returns a batch of identical containers, one per input frame, so downstream pair-mode composites line up.

Where it sits in a workflow

Typical use: you have a 1024×768 layer, you want a 1200×768 canvas so there's room to paste a second element beside it. InheritanceAdd gives you that canvas without you having to remember the source dimensions - the size follows the image. From there, the canvas feeds the container input of the ImageCompositeAbsoluteByContainer / ByContainer draw nodes, or you composite directly onto it.

It's also the workhorse that ImageContainerInheritanceScale delegates to: Scale computes a delta from a multiplier and calls this node under the hood. If you ever wonder why Scale feels like Add with extra steps, that's literally what it is.

Installing Allor

This is one of ~90 nodes in the Allor Plugin (Nourepide/ComfyUI-Allor). Install the pack once and the whole family shows up:

cd ComfyUI/custom_nodes
git clone https://github.com/Nourepide/ComfyUI-Allor
cd ComfyUI-Allor
pip install -r requirements.txt

Then restart ComfyUI. Or in ComfyUI Manager, search "Allor Plugin", install, restart - the route most people use, and honestly the more reliable one with this pack. The early Reddit threads about Allor are full of manual-install import errors, and reinstalling through Manager was the fix that kept being recommended.

Dependencies are just rembg and onnx (for the pack's segmentation half); nothing here needs a model download.

Gotchas that apply to the whole pack

The repo was rebased to strip images from its history (shrank ~344×), which occasionally breaks git pull/auto-update - the README's update-troubleshooting docs cover it, and delete-and-reclone is the blunt fix. Also expect [Allor] log lines at startup; that's the pack writing config.json and checking for updates, not an error.

Categoryimage/container

Inputs (8)

NameTypeDefaultDescription
imagesIMAGE
add_widthINT0
add_heightINT0
redINT255
greenINT255
blueINT255
alphaFLOAT0.00
methodCOMBO2 options: single, for_each

Outputs (1)

NameTypeDescription
IMAGEIMAGE