Nodes/ComfyUI-SuperNodes/🐧 Restore Mask Crop
ComfyUI Node

🐧 Restore Mask Crop

Restores a cropped image back into the original image context, handling scaling and blending.

By sonnyboxΒ·Created 10 months agoΒ·Updated 26 days agoΒ· 7
🐧 Restore Mask Crop
  • original_image
  • cropped_image
  • crop_info
  • cropped_mask
  • IMAGE
β—„strategyβ–Ύβ–Ί
β—„scale_methodβ–Ύβ–Ί
CategorySuperNodes/Image

Inputs (6)

NameTypeDefaultDescription
original_imageIMAGEThe original source image before cropping.
cropped_imageIMAGEThe processed cropped image to be pasted back.
crop_infoCROP_INFOThe crop metadata generated by the ImageMaskCrop node.
strategyCOMBOHow 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_methodCOMBOThe interpolation method used for resizing images.
cropped_maskoptMASKAn optional mask to use for blending, overriding the original crop mask.

Outputs (1)

NameTypeDescription
IMAGEIMAGEThe composite image with the crop restored to its original location.