Nodes/ComfyUI_agilly1989_motorway/EmptyImage_motorway_edition
ComfyUI Node

EmptyImage_motorway_edition

A solid-color pixel canvas, for img2img starts that aren't noise

By agilly1989·Created 2 years ago·Updated about a year ago· 7
EmptyImage_motorway_edition
  • MOTORWAY 🚌💨
  • MOTORWAY 🚌💨
width512
height512
batch_size1
color0
OUTPUT_IMAGE_keyIMAGE

Most "empty" nodes in ComfyUI make a latent - the compressed representation the sampler actually denoises. EmptyImage is different: it makes an actual IMAGE tensor, a flat rectangle of one solid color, in real pixel space. You'd reach for it when you want an image input where a photo would be too much - a neutral color canvas for img2img, a solid background behind a composition, or a placeholder for an image-input node while you test the rest of the graph.

The _motorway_edition version from agilly1989/ComfyUI_agilly1989_motorway wraps the core node so the image it generates gets parked on the Motorway pipe under a key, rather than handed out as a cable.

The inputs that matter

  • width (default 512, step 1) and height (default 512, step 1) - the canvas size in pixels. Unlike the latent nodes, there's no 8/16-pixel divisibility requirement here; a plain image tensor can be any size.
  • color (default 0) - the fill color, as a single 0–16777215 integer in 0xRRGGBB form. 0 is black. Pure red is 16711680 (0xFF0000). There's a color picker on the widget in the UI, which is a lot easier than typing hex.
  • batch_size (default 1) - how many identical canvases in the batch.
  • OUTPUT_IMAGE_key (default IMAGE) - the key the generated image is stored under on the Motorway.

Output is just the MOTORWAY pipe. If you've internalized how the Motorway works by now, this pattern is the whole pack in miniature: name a key, store a value, let something downstream read it by that name.

When you'd actually use it

img2img at high denoise is the classic case: you feed a flat-colored image through the VAE into latent space, then let the sampler keep enough structure to prevent that "total scramble" you get from pure noise. It's also handy for background work - a solid canvas you composite over later. And for the Motorway specifically, it's a good first node to practice on: MotorwayStartEmptyImage_motorway_edition → a Motorway 0x1 ramp, and you've successfully moved an image across the pipe.

One honest note: the color-as-integer thing is the ComfyUI core behavior, not a Motorway quirk. 16777215 is white, 65280 is green, and anything between is a hex puzzle. The widget's color picker saves you from ever doing the math.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway

Restart ComfyUI, or install via ComfyUI Manager by searching "ComfyUI_agilly1989_motorway." No extra dependencies or model files.

And the pack-level word of caution, because it applies to every node here: v1.1.7 ships with pyproject.toml describing a "HOTFIX - REMOVED MONKEYPATCH AND GENERATED NODES," and the generated clones are commented out of __init__.py. Core Motorway nodes work; the _motorway_edition clones may be missing from your menu until the author re-enables them. If this one doesn't show up, the plain EmptyImage in core does exactly the same job - you're only missing the key-naming wrapper.

Categoryagilly1989 Nodes/Motorway-ed/image

Inputs (6)

NameTypeDefaultDescription
widthINT5121–16384
heightINT5121–16384
batch_sizeINT11–4096
colorINT00–16777215
OUTPUT_IMAGE_keySTRINGIMAGE
MOTORWAY 🚌💨optMOTORWAY 🚌💨

Outputs (1)

NameTypeDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨