ComfyUI Node
Calculate Image Size
A ComfyUI node in agent_adapter with 5 inputs and 6 outputs.
Calculate Image Size
- image
- new_width
- new_height
- pad_top
- pad_bottom
- pad_left
- pad_right
◄aspect_ratio1:1►
◄auto_fliptrue►
◄horizontal_aligncenter►
◄vertical_aligncenter►
Categoryagent_adapter
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| aspect_ratio | COMBO | 1:1 | 9 options: 1:1, 4:3, 3:2, 16:9, 21:9, 9:16, +3 |
| auto_flip | BOOLEAN | true | — |
| horizontal_align | COMBO | center | 3 options: left, center, right |
| vertical_align | COMBO | center | 3 options: top, center, bottom |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| new_width | INT | — |
| new_height | INT | — |
| pad_top | INT | — |
| pad_bottom | INT | — |
| pad_left | INT | — |
| pad_right | INT | — |