Storyboard Panel Crop
Slice that Krea2 grid into clean frames
- image
- images
- grid_preview
This is the node the pack exists for. Storyboard Panel Crop takes a multi-panel storyboard image - the kind Krea2 and other Diffusion Transformers produce as one big canvas - and slices it back into individual frames, shaving off the borders so adjacent panels' content doesn't contaminate the crops. It's from domg73's ComfyUI-Storyboard-Tools, and it's the extraction step that turns "one wide grid" into "six usable panels you can actually work with."
The storyboard workflow goes: generate the whole board in one pass so every frame shares a coherent latent context, then cut it apart afterward. The problem is that single-canvas generation leaks detail across panel seams - you'll see stray hair, duplicate props, or color bleeding right at the borders. The author's own posts are blunt that Krea2 "often breaks down completely with large grids," so anything that cleanly recovers what did generate is worth its weight. This node is that recovery step.
How it works
Divide and conquer, in pure torch. It splits the image into a columns × rows matrix, crops each cell, then runs every crop through the same finishing pipeline:
- Grid offsets applied -
offset_x/offset_yshift where the matrix lands, in case the model placed panels off-center. - Edge shaving -
shave_edges_pixelstrims pixels off every side of each crop, cutting the borders and the bleed they carry. - Aspect normalization - each crop is brought to your
target_aspect_ratio, either by center-crop-zooming (center_crop_zoom) or by fitting and padding with black (letterbox_black). - Uniform resize - every panel is bicubic-upscaled back to the nominal cell size, so the whole output batch shares one resolution.
It also emits a grid_preview: the source image overlaid with a yellow outer-shave line, red grid lines, and blue inner-shave guides. That preview is the hidden gem - you can dial in columns, rows, and offset values while staring at the overlay, without burning another generation.
The inputs that matter
- image - your storyboard canvas.
- columns / rows - grid dimensions, both default 2, up to 20. Must match how the board was generated.
- shave_edges_pixels - border trim per panel side, default 8. This is the anti-bleed knob; raise it if frames still show neighbor content.
- offset_x / offset_y - fine-tune the grid position, ±500px.
- target_aspect_ratio -
original_proportions, 1:1, 16:9 (default), 3:4, 9:16, or 21:9. - padding_mode -
center_crop_zoom(crops to fit, default) orletterbox_black(never loses image, adds black bars).
Outputs: images - a batch of every panel (batch size × columns × rows, so a 2x2 split of one image gives you four). Wire it to a Save Image, a per-panel upscaler, or an inpainting pass. And grid_preview, the annotated overlay, into any preview node.
Install
Same light lift as the rest of the pack: pure torch, no requirements.txt, no models to download. Install via ComfyUI Manager (search ComfyUI-Storyboard-Tools) or:
cd ComfyUI/custom_nodes
git clone https://github.com/domg73/ComfyUI-Storyboard-Tools
Restart, and it lives under image/storyboard.
Common issues
Frames look shifted or cut wrong - your offset_x / offset_y are off, or the grid is asymmetric. Check the grid_preview output first; that's exactly what it's for.
Still seeing neighbor content at panel edges - bump shave_edges_pixels. Krea2 bleed is aggressive, and 8px sometimes isn't enough.
Panels are warped or weirdly cropped - switch padding_mode to letterbox_black if center_crop_zoom is eating content you need; 16:9 is the default target, so a square-ish panel will get cropped hard.
Remember this is a week-old, single-commit pack the author calls "highly experimental and not production-ready." For 4–6 panels it does its job admirably; beyond that, the model's the bottleneck, not this node.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| columns | INT | 21–20 | — |
| rows | INT | 21–20 | — |
| shave_edges_pixels | INT | 80–50 | — |
| offset_y | INT | 0-500–500 | — |
| offset_x | INT | 0-500–500 | — |
| target_aspect_ratio | COMBO | 16:9 (Widescreen) | 6 options: original_proportions, 1:1 (Square), 16:9 (Widescreen), 3:4 (Vertical), 9:16 (Vertical), 21:9 (Ultrawide) |
| padding_mode | COMBO | center_crop_zoom | 2 options: center_crop_zoom, letterbox_black |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| grid_preview | IMAGE | — |