Nuke Crop
Crop precisely with soft edges, Nuke-style
- image
- IMAGE
Crop is the node nobody thinks about until they need it, and then they need it in three slightly different flavors. NukeCrop handles the whole family: a hard crop that actually cuts pixels, a "format" crop that keeps the full canvas and zeroes out everything outside your region, and - the part that makes it interesting - soft feathered edges so the cropped area blends instead of slicing.
The difference between the two modes is the first thing to understand, because it decides which one you use. With resize set to crop, you get a genuine crop: the output image is smaller, containing only the region you kept. With resize set to format, the output stays the original resolution and everything outside your crop bounds becomes transparent (or partially transparent, with soft edges). Format mode is the comp-friendly one - crop the visible content but keep the frame, then drop it over a background.
When you'd reach for it
- Cut a face out of a wide shot to work on it larger.
- Matte off part of an image to composite, using format mode with a soft edge so the seam disappears.
- Clean up the edges of a generated image before saving.
The inputs that matter
left/right/top/bottom- the crop bounds as normalized 0–1 fractions of the image, not pixels. Defaults are 0, 1, 0, 1 (the full image). Setleftto 0.25 to drop the left quarter, and so on.softness- 0 to 0.1, how wide the feathered edge is, again in normalized units. Only meaningful informatmode. 0 gives a hard edge.resize-crop(actual pixel crop, smaller output) orformat(same-size output, masked region).
Output is a single IMAGE. In crop mode it's smaller; in format mode it matches the input size.
Installing it
Part of the Nuke Nodes pack:
cd ComfyUI/custom_nodes
git clone https://github.com/sumitchatterjee13/nuke-nodes-comfyui.git nuke-nodes
cd nuke-nodes
pip install -r requirements.txt
Or search "Nuke Nodes" in ComfyUI Manager and restart. Under the Nuke category, pure PyTorch, nothing special to install.
Common issues
- The output isn't smaller than the input - you're in
formatmode, which keeps the frame on purpose. Switchresizetocropfor a true pixel crop. - Soft edges don't show up -
softnessonly does anything informatmode, and even then the feathered area is transparent, so you'll only see the softness when the image is composited over something. - Wrong area cropped - remember everything is normalized fractions, not pixels.
left=0.5 chops the left half, not the left 50 pixels. - Hard black or transparent edge in
formatmode - that's the point of the mode; the region outside the bounds is masked out. If you don't want the mask, usecropmode.
It's not glamorous, but when you need a feathered, frame-preserving crop for a composite, this is the node the pack gave you for it.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| left | FLOAT | 0.000–1 | — |
| right | FLOAT | 1.000–1 | — |
| top | FLOAT | 0.000–1 | — |
| bottom | FLOAT | 1.000–1 | — |
| softness | FLOAT | 0.0000–0.1 | — |
| resize | COMBO | crop | 2 options: crop, format |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |