ComfyUI Node
Batch Resize & Pad for Datasets
Resize each image in a batch to fit a target box (aspect preserved) and pad to uniform size.
Batch Resize & Pad for Datasets
- images
- processed_images
◄target_width512►
◄target_height512►
◄pad_color#000000►
CategoryParametric/Image
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | The input images. | |
| target_width | INT | 5121–8192 | Target width. From 1 to 8192. Default 512. |
| target_height | INT | 5121–8192 | Target height. From 1 to 8192. Default 512. |
| pad_color | STRING | #000000 | Pad color. Default #000000. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| processed_images | IMAGE | — |