ComfyUI Node
Crop Restore
Pastes a processed crop back where Mask Crop took it from. The crop is resized back to the rectangle it was cut at, then blended over the source picture through the mask, so every pixel outside the mask stays bit-identical to the source. expand grows the mask before pasting (a few pixels hide the seam of a repaint), feather softens that edge, and colour_match shifts the patch's overall colour to match the source and remove the brightness drift an upscale-and-back leaves behind. Only the part of the rectangle inside the picture is written; a crop that hung outside the frame keeps its filled room outside.
Crop Restore
- seam
- image
- mask
- background
- image
◄expand0►
◄feather8►
◄colour_match0.00►
CategoryQG-tools/Image
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| seam | QGSeam | The seam output of Mask Crop. | |
| image | IMAGE | The crop after processing. Any size; it is resized back to the rectangle. | |
| expand | INT | 0-256–256 | Grow the mask this many pixels before pasting; negative shrinks it. 4 to 16 hides a repaint seam. |
| feather | INT | 80–256 | Soften the pasted edge over this many pixels. 0 gives a hard cut. |
| colour_match | FLOAT | 0.000–1 | Line the patch's median colour up with the source's. Fixes a brightness or cast drift, does not recolour a repaint. |
| maskopt | MASK | A mask for the processed crop (the crop's own mask, edited). Leave empty to reuse the painted area. | |
| backgroundopt | IMAGE | Paste onto this instead of the source picture. Must be the source's size. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The source picture with the processed crop blended back in. |