Nodes/RES4LYF/Image Repeat Tile To Size
ComfyUI Node Runs on cloud

Image Repeat Tile To Size

Fill a canvas from a small tile

By ClownsharkBatwing·Created 2 years ago·Updated 18 days ago· 1,222
Image Repeat Tile To Size
  • image
  • image
width1024
height1024
croptrue

This is the plain utility node in a pack otherwise stuffed with exotic samplers. It takes one image and repeats it edge-to-edge until it fills a target width and height. Think of it as tile from a command line, but for a ComfyUI image tensor: a small pattern goes in, a big repeated sheet comes out.

You'd reach for it when you need a full-size image built from a smaller source and you don't care about a diffusion pass to do it. Common cases: turning a texture or swatch into a background of an exact resolution, building a repeated pattern to use as a latent-guide or composition reference, or just padding a scene out to the dimensions your sampler expects. It's fast, deterministic, and doesn't touch the model - no VRAM, no steps, no waiting.

How it works

The node reads the source image's dimensions, then repeats it as many times as needed on both axes to cover the requested width × height. If the tiling overshoots the target (which it almost always will, since your tile rarely divides evenly into the canvas), the crop flag decides what happens to the overflow.

The inputs that matter

There are only four, and you'll set three:

  • image (IMAGE) - the tile you want repeated.
  • width / height (INT, both default 1024) - the output size you want to fill. Set these to whatever your workflow downstream expects.
  • crop (BOOLEAN, default true) - with crop on, the tiled sheet is trimmed to exactly width × height. Turn it off and you'll get whole tiles only, so the result can end up larger than the numbers you typed. Leave it on unless you specifically need intact tiles.

The single output is image (IMAGE), which wires into anything that eats an image - a VAE encode, a preview, a compositing node.

Installing it

Two routes. In ComfyUI Manager, search RES4LYF, click install, restart. Or from a terminal:

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

Run that pip install inside your venv (or point at the embedded Python if you're on portable ComfyUI), restart, and hard-refresh the browser with F5, not just r. There's nothing to download for this node - the whole pack shares one requirements.txt.

Where people get tripped up

Nothing here is smart. It's a literal repeat, so if your source tile isn't seamless you will see hard seams marching across the output on a grid. This node does not synthesize a seamless texture; if you need edges that blend, tile a source that was authored to be seamless, or run the result through a diffusion pass afterward.

The other thing worth knowing: with crop off, the output dimensions are driven by whole-tile counts, not your width/height values, so a downstream node that demands an exact size can choke. If a later node complains about mismatched dimensions, that's the first switch to check. And if the node doesn't appear in your menu at all, RES4LYF didn't finish installing - reinstall and watch the console for a failed pip install.

CategoryRES4LYF/images

Inputs (4)

NameTypeDefaultDescription
imageIMAGE
widthINT10241–1048576
heightINT10241–1048576
cropBOOLEANtrue

Outputs (1)

NameTypeDescription
imageIMAGE