ComfyUI Node
π§ Restore Mask Crop
Restores a cropped image back into the original image context, handling scaling and blending.
π§ Restore Mask Crop
- original_image
- cropped_image
- crop_info
- cropped_mask
- IMAGE
βstrategyβΎβΊ
βscale_methodβΎβΊ
CategorySuperNodes/Image
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| original_image | IMAGE | The original source image before cropping. | |
| cropped_image | IMAGE | The processed cropped image to be pasted back. | |
| crop_info | CROP_INFO | The crop metadata generated by the ImageMaskCrop node. | |
| strategy | COMBO | How to handle size mismatches. 'scale_cropped' resizes the input crop to the original hole. 'scale_original' resizes the background to match the new crop scale. | |
| scale_method | COMBO | The interpolation method used for resizing images. | |
| cropped_maskopt | MASK | An optional mask to use for blending, overriding the original crop mask. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | The composite image with the crop restored to its original location. |