Nodes/Hermes Nodes/Pad Image to Square
ComfyUI Node

Pad Image to Square

Scales the longest side to `size` and centers the image on a square canvas of the fill color.

By Lannister34·Created 10 months ago·Updated 10 days ago· 1
Pad Image to Square
  • image
  • image
◄size0►
◄fill_color_hex#FFFFFF►
Categoryhermes/image

Inputs (3)

NameTypeDefaultDescription
imageIMAGE—
sizeINT00–8192Target square size. 0 = use longest side of input image.
fill_color_hexoptSTRING#FFFFFFFill color as hex (#RRGGBB or #RGB).

Outputs (1)

NameTypeDescription
imageIMAGE—