Nodes/ComfyUI-SmartGridCutter/Smart Grid Cutter ✂️
ComfyUI Node

Smart Grid Cutter ✂️

Splits a grid image into individual frames by detecting divider lines. Works with any grid layout.

By veoreg·Created 3 months ago·Updated 3 months ago· 0
Smart Grid Cutter ✂️
  • image
  • frame_0
  • frame_1
  • frame_2
  • frame_3
  • frame_4
  • frame_5
  • frame_6
  • frame_7
  • frame_8
  • cols
  • rows
  • total_frames
  • grid_info
mode
custom_cols3
custom_rows3
divider_threshold0.15
min_divider_width2
padding2
align_to16
Categoryimage/transform

Inputs (8)

NameTypeDefaultDescription
imageIMAGE
modeCOMBO6 options: auto, 3x3, 4x2, 3x2, 2x2, custom
custom_colsoptINT31–10
custom_rowsoptINT31–10
divider_thresholdoptFLOAT0.150.01–0.5Brightness difference threshold for detecting divider lines. Lower = more sensitive.
min_divider_widthoptINT21–20Minimum width in pixels for a line to be considered a divider.
paddingoptINT20–20Pixels to trim from each cell edge after cutting.
align_tooptINT161–64Align cell dimensions to this value (16 for video compatibility).

Outputs (13)

NameTypeDescription
frame_0IMAGE
frame_1IMAGE
frame_2IMAGE
frame_3IMAGE
frame_4IMAGE
frame_5IMAGE
frame_6IMAGE
frame_7IMAGE
frame_8IMAGE
colsINT
rowsINT
total_framesINT
grid_infoSTRING