Nodes/Parametric Studio/Batch Resize & Pad for Datasets
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.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
Batch Resize & Pad for Datasets
  • images
  • processed_images
◄target_width512►
◄target_height512►
◄pad_color#000000►
CategoryParametric/Image

Inputs (4)

NameTypeDefaultDescription
imagesIMAGEThe input images.
target_widthINT5121–8192Target width. From 1 to 8192. Default 512.
target_heightINT5121–8192Target height. From 1 to 8192. Default 512.
pad_colorSTRING#000000Pad color. Default #000000.

Outputs (1)

NameTypeDescription
processed_imagesIMAGE—