Nodes/kubakub nodes/kubakub uncrop
ComfyUI Node

kubakub uncrop

Puts an edited crop back where kubakub crop cut it from: scaled to the box, with a soft edge (none where the box lies on the picture's border). Only the part over the picture comes back (canvas added past the edge is left out). The original may come at another size: the box goes to the same spot of it. A mask limits the paste (white = paste).

By kubakubkub·Created about a month ago·Updated 2 days ago· 10
kubakub uncrop
  • original
  • crop
  • crop_box
  • mask
  • image
◄soft_edge16►
Categorykubakub/utils

Inputs (5)

NameTypeDefaultDescription
originalIMAGEThe picture the crop was cut from (or the same at another size).
cropIMAGEThe edited crop (any size: it is scaled to the box).
crop_boxKUBA_CROP_BOXFrom kubakub crop.
soft_edgeINT160–512How wide the blend is at the box's edges, in pixels of the original.
maskoptMASKPaste only where this is white: a mask of the crop, or of the whole original.

Outputs (1)

NameTypeDescription
imageIMAGE—