ComfyUI Node
Image Aspect Expand
A ComfyUI node in YCNode/Image with 4 inputs and 5 outputs.
Image Aspect Expand
- image
- expanded_image
- original_mask
- width
- height
- selected_ratio
◄aspect_ratios16:9
9:16
4:3
3:4
1:1►
◄fill_color#000000►
◄alignmentcenter►
CategoryYCNode/Image
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| aspect_ratios | STRING | 16:9 9:16 4:3 3:4 1:1 | 比例或尺寸列表,每行一个。格式: 比例(如4:3) 或 具体尺寸(如768x1024)。多行时自动选择最接近的 |
| fill_color | STRING | #000000 | 填充颜色(十六进制) |
| alignment | COMBO | center | 原图对齐方式 |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| expanded_image | IMAGE | — |
| original_mask | MASK | — |
| width | INT | — |
| height | INT | — |
| selected_ratio | STRING | — |