ComfyUI Node
Scale Image to Reference Bbox ⚡
A ComfyUI node in Texture Alchemist/Inpainting with 7 inputs and 4 outputs.
Scale Image to Reference Bbox ⚡
- image
- mask
- reference_bbox
- image
- mask
- bbox_data
- info
◄canvasreference_size►
◄match_modelarger_side►
◄padding0►
◄invert_maskfalse►
CategoryTexture Alchemist/Inpainting
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | — | |
| reference_bbox | BBOX_DATA | — | |
| canvas | COMBO | reference_size | reference_size: output exactly ref W×H (stitch-friendly); scaled frame centered on subject. scaled_full: entire scaled image (W×S, H×S) |
| match_mode | COMBO | larger_side | larger_side=max(w,h ratios)—typical to match undersized edits; smaller_side=min; width/height=one axis; area=sqrt(ref area / src area) |
| padding | INT | 00–500 | Extra pixels around mask bbox before resize |
| invert_mask | BOOLEAN | false | Invert mask before bbox detection |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| bbox_data | BBOX_DATA | — |
| info | STRING | — |