ComfyUI Node
Force Aspect On Bounds
A ComfyUI node in 🐝TinyBee/Util with 13 inputs and 4 outputs.
Force Aspect On Bounds
- new_x
- new_y
- new_width
- new_height
◄x0►
◄y0►
◄width512►
◄height512►
◄image_width512►
◄image_height512►
◄aspect_ratio1.00►
◄fit_modemaintain_height►
◄include_x0►
◄include_y0►
◄include_width0►
◄include_height0►
◄include_rel_xyfalse►
Category🐝TinyBee/Util
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| x | INT | 0-10000–10000 | — |
| y | INT | 0-10000–10000 | — |
| width | INT | 5121–10000 | — |
| height | INT | 5121–10000 | — |
| image_width | INT | 5121–10000 | — |
| image_height | INT | 5121–10000 | — |
| aspect_ratio | FLOAT | 1.000.01–100 | — |
| fit_mode | COMBO | maintain_height | 2 options: maintain_height, maintain_width |
| include_xopt | INT | 00–10000 | — |
| include_yopt | INT | 00–10000 | — |
| include_widthopt | INT | 00–10000 | — |
| include_heightopt | INT | 00–10000 | — |
| include_rel_xyopt | BOOLEAN | false | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| new_x | INT | — |
| new_y | INT | — |
| new_width | INT | — |
| new_height | INT | — |