Fit Image into BBox Mask

vsLinx_FitImageIntoBBoxMask

This node fits an image inside the bounding box region of a mask and places it into a destination image (or a blank canvas). It’s useful for workflows where you want to insert or align a smaller image (e.g. pose, object, logo, patch) into a specific masked region while keeping correct proportions. This node does the following:

Pack: ComfyUI vsLinx Nodes

custom_nodes.ComfyUI-vslinx-nodes

Inputs (14)

NameTypeRequired
sourceIMAGErequired
maskMASKrequired
modeCOMBOrequired
align_xCOMBOrequired
align_yCOMBOrequired
offset_xINTrequired
offset_yINTrequired
thresholdFLOATrequired
padINTrequired
use_source_alphaBOOLEANrequired
antialiasCOMBOrequired
destinationIMAGEoptional
canvas_wINToptional
canvas_hINToptional

Outputs (7)

NameType
compositeIMAGE
fitted_sourceIMAGE
placed_maskMASK
xINT
yINT
wINT
hINT