ComfyUI Node
Aspect Ratio (Seb)
A ComfyUI node in utils/aspect_ratio with 8 inputs and 2 outputs.
Aspect Ratio (Seb)
- width
- height
◄preset1:1 (Square)►
◄custom_aspect_width16►
◄custom_aspect_height9►
◄control_modeMegapixels►
◄target_megapixels1.0►
◄fixed_side_value1024►
◄fixed_side_axisWidth►
◄multiple_of8►
Categoryutils/aspect_ratio
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| preset | COMBO | 1:1 (Square) | 12 options: 9:19.5 (Mobile Portrait), 9:16 (Tall Portrait), 2:3 (Portrait), 3:4 (Portrait), 4:5 (Social Media Portrait), 1:1 (Square), +6 |
| custom_aspect_width | INT | 16 | — |
| custom_aspect_height | INT | 9 | — |
| control_mode | COMBO | Megapixels | 2 options: Megapixels, Fixed Side |
| target_megapixels | FLOAT | 1.00.1–64 | — |
| fixed_side_value | INT | 102464–8192 | — |
| fixed_side_axis | COMBO | Width | 2 options: Width, Height |
| multiple_of | INT | 8 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |