Nodes/WAS_Extras/Image Tile Extract
ComfyUI Node

Image Tile Extract

Split an image into four quadrants, each on its own wire

By WASasquatch·Created 3 years ago·Updated 17 days ago· 43
Image Tile Extract
  • images
  • top_left
  • top_right
  • bottom_left
  • bottom_right
border_width0
border_color#FFFFFF

Nothing complicated here: this node cuts an image into a fixed 2×2 grid and hands each quadrant back as its own separate IMAGE output. The point of that separation is that each tile is now its own wire - you can send the four corners to four different nodes, process them independently, and recombine or compare them however your workflow needs.

How it works

The split is always exactly four tiles - top-left, top-right, bottom-left, bottom-right - with no configurable grid size. What is configurable is padding: border_width adds a colored border around each extracted tile, and per the tooltip the tile's actual content gets resized to fit inside that border rather than the border simply overlaying the edges of the tile. That matters at larger border widths on smaller tiles - you'll visibly lose some content area to make room for the border, not just gain a frame around unchanged content.

Compare this to this pack's other tiling node, Image Tile Shuffle (WASImageTileShuffle): that one splits into a variable, larger grid and scrambles the pieces back into a single reassembled image. This node is the opposite shape - always four tiles, and you get four separate outputs to work with individually rather than one recombined result.

The inputs and outputs that matter

  • images (IMAGE) - the image(s) to split into four tiles.
  • border_width (default 0, range 0–100) - pixel width of an optional border around each tile. At 0, tiles are plain crops with no padding.
  • border_color (default #FFFFFF, hex string) - the border's color, only relevant when border_width is above zero.

Four outputs, all IMAGE: top_left, top_right, bottom_left, bottom_right - each a quarter of the original, addressable independently.

How to install it

Via ComfyUI Manager: search "WAS_Extras", install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/WASasquatch/WAS_Extras

Restart ComfyUI. No extra dependencies - plain image cropping, nothing to download.

Common issues & troubleshooting

Only need one or two of the four tiles. That's fine - you don't have to connect all four outputs. Leaving some unwired doesn't affect the others; ComfyUI just won't compute anything downstream of the wires you didn't use.

Tiles seem slightly mismatched in size on an odd-dimension image. With a width or height that doesn't divide evenly in half, one side of the split will end up a pixel larger than the other - this is a plain geometric split, not content-aware, so an odd source dimension means the quadrant boundary isn't perfectly centered on actual image content.

Border makes the tile content look noticeably smaller. That's border_width doing exactly what its tooltip says - it resizes tile content to fit inside the border rather than adding the border as extra canvas around unchanged content. Lower border_width, or set it to 0, if you want the tiles unmodified.

Wanted a scrambled/reassembled single image instead of four separate tiles. That's a different node in this pack - Image Tile Shuffle (WASImageTileShuffle) splits into a configurable number of tiles and hands back one reassembled, shuffled image rather than four individual outputs.

Categoryimage/transform

Inputs (3)

NameTypeDefaultDescription
imagesIMAGEInput images to split into 4 tiles (NHWC).
border_widthINT00–100Border width in pixels applied around each tile. The image content is resized to fit within the border.
border_colorSTRING#FFFFFFHex color for the tile border (e.g. #FFFFFF).

Outputs (4)

NameTypeDescription
top_leftIMAGE
top_rightIMAGE
bottom_leftIMAGE
bottom_rightIMAGE