Nodes/ComfyUI-TextureAlchemy/Scale Image to Reference Bbox ⚡
ComfyUI Node

Scale Image to Reference Bbox ⚡

A ComfyUI node in Texture Alchemist/Inpainting with 7 inputs and 4 outputs.

By amtarr·Created 8 months ago·Updated 4 months ago· 54
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)

NameTypeDefaultDescription
imageIMAGE
maskMASK
reference_bboxBBOX_DATA
canvasCOMBOreference_sizereference_size: output exactly ref W×H (stitch-friendly); scaled frame centered on subject. scaled_full: entire scaled image (W×S, H×S)
match_modeCOMBOlarger_sidelarger_side=max(w,h ratios)—typical to match undersized edits; smaller_side=min; width/height=one axis; area=sqrt(ref area / src area)
paddingINT00–500Extra pixels around mask bbox before resize
invert_maskBOOLEANfalseInvert mask before bbox detection

Outputs (4)

NameTypeDescription
imageIMAGE
maskMASK
bbox_dataBBOX_DATA
infoSTRING