ComfyUI Node
🐧 Pad Image Scaled
A ComfyUI node in SuperNodes/Image with 8 inputs and 2 outputs.
🐧 Pad Image Scaled
- image
- IMAGE
- MASK
◄target_width1024►
◄target_height1024►
◄shift_horizontal0.00►
◄shift_vertical0.00►
◄scale_factor1.00►
◄scale_methodnearest-exact►
◄color#808080►
CategorySuperNodes/Image
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The input image. | |
| target_width | INT | 10241–16384 | Final output width in pixels. |
| target_height | INT | 10241–16384 | Final output height in pixels. |
| shift_horizontal | FLOAT | 0.00-1–1 | Horizontal placement: -1 = far left, 0 = center, 1 = far right. |
| shift_vertical | FLOAT | 0.00-1–1 | Vertical placement: -1 = bottom, 0 = center, 1 = top. |
| scale_factor | FLOAT | 1.000.1–1 | Additional scale after fitting. 1.0 = normal fill. Smaller values shrink image to create padding. |
| scale_method | COMBO | nearest-exact | Resampling method used for resizing. |
| color | STRING | #808080 | Padding color as hex (#RRGGBB, RRGGBB, #RGB, RGB). Invalid values default to white. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |