Pad Image (KJ/SET)

SET_ImagePad

Pad the input image and optionally mask with the specified padding. The `target_width`/`target_height` overrides left, right, top and bottom.

Pack: Image Misc

custom_nodes.ComfyUI-ImageMisc

Inputs (12)

NameTypeRequired
imageIMAGErequired
leftINTrequired
rightINTrequired
topINTrequired
bottomINTrequired
extra_paddingINTrequired
pad_modeCOMBOrequired
colorSTRINGrequired
maskMASKoptional
target_widthINToptional
target_heightINToptional
pad_transparencyFLOAToptional

Outputs (2)

NameType
imagesIMAGE
masksMASK