Nodes/ComfyUI-YCNodes/Image Aspect Expand
ComfyUI Node

Image Aspect Expand

A ComfyUI node in YCNode/Image with 4 inputs and 5 outputs.

By yichengup·Created 2 years ago·Updated 3 months ago· 47
Image Aspect Expand
  • image
  • expanded_image
  • original_mask
  • width
  • height
  • selected_ratio
aspect_ratios16:9 9:16 4:3 3:4 1:1
fill_color#000000
alignmentcenter
CategoryYCNode/Image

Inputs (4)

NameTypeDefaultDescription
imageIMAGE
aspect_ratiosSTRING16:9 9:16 4:3 3:4 1:1比例或尺寸列表,每行一个。格式: 比例(如4:3) 或 具体尺寸(如768x1024)。多行时自动选择最接近的
fill_colorSTRING#000000填充颜色(十六进制)
alignmentCOMBOcenter原图对齐方式

Outputs (5)

NameTypeDescription
expanded_imageIMAGE
original_maskMASK
widthINT
heightINT
selected_ratioSTRING