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

Authored by heyburns

Created

Updated

1 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Category

PortraitUtils/Transform

Inputs

image IMAGE
x INT
y INT
w INT
h INT
aspects_csv STRING
match_to
  • image
  • mq_box
headroom_ratio FLOAT
footroom_ratio FLOAT
side_margin_ratio FLOAT
bottom_priority FLOAT
horiz_gravity
  • center
  • left
  • right

Outputs

INT

INT

INT

INT

STRING

STRING

Extension: PortraitUtils

A focused node collection designed for pipelines using real photographic images where resolutions are not standardized like they are in text-to-image generation.

Authored by heyburns

Looking for a different node?

Other PortraitUtils/Transform nodes

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more