ComfyUI Node
๐บ Resize Image v2
Resizes images with optional aspect preservation, padding/cropping, and sub-batching to lower peak memory.
๐บ Resize Image v2
- image
- mask
- IMAGE
- width
- height
- mask
โwidth512โบ
โheight512โบ
โupscale_methodโพโบ
โkeep_proportionfalseโบ
โpad_color0, 0, 0โบ
โcrop_positioncenterโบ
โdivisible_by2โบ
โdeviceโพโบ
โper_batch16โบ
CategoryNilor Nodes ๐บ/Utilities
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | โ | |
| width | INT | 5120โ9007199254740991 | โ |
| height | INT | 5120โ9007199254740991 | โ |
| upscale_method | COMBO | 5 options: nearest-exact, bilinear, area, bicubic, lanczos | |
| keep_proportion | COMBO | false | 7 options: stretch, resize, pad, pad_edge, pad_edge_pixel, crop, +1 |
| pad_color | STRING | 0, 0, 0 | โ |
| crop_position | COMBO | center | 5 options: center, top, bottom, left, right |
| divisible_by | INT | 20โ512 | โ |
| maskopt | MASK | โ | |
| deviceopt | COMBO | 2 options: cpu, gpu | |
| per_batchopt | INT | 160โ4096 | Process images in sub-batches. 0 disables. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | โ |
| width | INT | โ |
| height | INT | โ |
| mask | MASK | โ |