ComfyUI Node
🖼️ Resize to Aspect Ratio
A ComfyUI node in STUDIO_NODES with 6 inputs and 4 outputs.
🖼️ Resize to Aspect Ratio
- image
- resized_image
- width
- height
- resolution_label
◄width0►
◄height0►
◄aspect_ratio1:1►
◄directionHorizontal►
◄crop_methodStretch►
CategorySTUDIO_NODES
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| width | INT | 00–4096 | — |
| height | INT | 00–4096 | — |
| aspect_ratio | COMBO | 1:1 | 10 options: 1:1, 16:9, 5:4, 4:3, 3:2, 2.39:1, +4 |
| direction | COMBO | Horizontal | 2 options: Horizontal, Vertical |
| crop_method | COMBO | Stretch | 2 options: Stretch, Crop |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| resized_image | IMAGE | — |
| width | INT | — |
| height | INT | — |
| resolution_label | STRING | — |