ComfyUI Node
kubakub canvas restore
Bring a generated canvas back to the exact target: crop the grid padding, resize uniformly to the target size, trim extra video frames, check the size. Put a model upscaler (4x, SeedVR2) before it; any uniform scale of the padded or cropped canvas is accepted.
kubakub canvas restore
- image
- canvas_plan
- mask
- image
- mask
◄resize_methodauto►
◄trim_framestrue►
Categorykubakub/2d/regions/canvas
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The generated (or upscaled) work canvas. | |
| canvas_plan | KUBA_CANVAS_PLAN | The same plan used for canvas to work. | |
| resize_method | COMBO | auto | Final resize to the target: auto = area when shrinking, lanczos when growing. |
| trim_frames | BOOLEAN | true | Video: drop the frames added by the model's frame rule. |
| maskopt | MASK | Optional mask on the work canvas, restored the same way. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The image at the exact target size. |
| mask | MASK | The mask at the target size (zeros if none). |