ComfyUI Node
Mask Ratio Pad (YC)
A ComfyUI node in YCNode/Mask with 8 inputs and 5 outputs.
Mask Ratio Pad (YC)
- image
- mask
- inner_mask
- image
- mask
- ratio_mask
- pad_mask
- inner_mask
◄ratio1:1►
◄pad_modeedge►
◄fill_color#ffffff►
◄extra_expand0►
◄padding_modecenter►
CategoryYCNode/Mask
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | — | |
| ratio | COMBO | 1:1 | 7 options: 1:1, 3:4, 4:3, 9:16, 16:9, 3:2, +1 |
| pad_mode | COMBO | edge | 5 options: edge, reflect, symmetric, wrap, constant |
| fill_color | STRING | #ffffff | — |
| extra_expand | INT | 00–2000 | — |
| padding_mode | COMBO | center | 5 options: center, top, bottom, left, right |
| inner_maskopt | MASK | — |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| ratio_mask | MASK | — |
| pad_mask | MASK | — |
| inner_mask | MASK | — |