Nodes/PortraitUtils/Fit Aspect (Head-Safe) - Closest AR + Tight Cover
ComfyUI Node

Fit Aspect (Head-Safe) - Closest AR + Tight Cover

A ComfyUI node in PortraitUtils/Transform with 12 inputs and 6 outputs.

By heyburns·Created 10 months ago·Updated 3 months ago· 1
Fit Aspect (Head-Safe) - Closest AR + Tight Cover
  • image
  • w
  • h
  • x
  • y
  • aspect_used
  • debug
x
y
w
h
aspects_csv2:3,3:4,1:1,9:16,16:9,5:8,8:5
match_tomq_box
headroom_ratio0.12
footroom_ratio0.06
side_margin_ratio0.08
bottom_priority0.75
horiz_gravitycenter
CategoryPortraitUtils/Transform

Inputs (12)

NameTypeDefaultDescription
imageIMAGE
xINT
yINT
wINT
hINT
aspects_csvSTRING2:3,3:4,1:1,9:16,16:9,5:8,8:5
match_toCOMBOmq_box2 options: image, mq_box
headroom_ratioFLOAT0.120–0.5
footroom_ratioFLOAT0.060–0.5
side_margin_ratioFLOAT0.080–0.5
bottom_priorityFLOAT0.750–1
horiz_gravityCOMBOcenter3 options: center, left, right

Outputs (6)

NameTypeDescription
wINT
hINT
xINT
yINT
aspect_usedSTRING
debugSTRING