Nodes/ComfyUI-SuperNodes/🐧 Pad Image Scaled
ComfyUI Node

🐧 Pad Image Scaled

A ComfyUI node in SuperNodes/Image with 8 inputs and 2 outputs.

By sonnybox·Created 10 months ago·Updated 26 days ago· 7
🐧 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)

NameTypeDefaultDescription
imageIMAGEThe input image.
target_widthINT10241–16384Final output width in pixels.
target_heightINT10241–16384Final output height in pixels.
shift_horizontalFLOAT0.00-1–1Horizontal placement: -1 = far left, 0 = center, 1 = far right.
shift_verticalFLOAT0.00-1–1Vertical placement: -1 = bottom, 0 = center, 1 = top.
scale_factorFLOAT1.000.1–1Additional scale after fitting. 1.0 = normal fill. Smaller values shrink image to create padding.
scale_methodCOMBOnearest-exactResampling method used for resizing.
colorSTRING#808080Padding color as hex (#RRGGBB, RRGGBB, #RGB, RGB). Invalid values default to white.

Outputs (2)

NameTypeDescription
IMAGEIMAGE
MASKMASK