Nodes/ComfyUI-BCNodes/Image Scale By Aspect Ratio
ComfyUI Node

Image Scale By Aspect Ratio

A ComfyUI node in BCNodes/image with 11 inputs and 5 outputs.

By 0xBeycan·Created 3 days ago·Updated a day ago· 0
Image Scale By Aspect Ratio
  • image
  • mask
  • image
  • mask
  • original_size
  • width
  • height
◄aspect_ratio▾►
◄proportional_width1►
◄proportional_height1►
◄fit▾►
◄method▾►
◄round_to_multiple▾►
◄scale_to_side▾►
◄scale_to_length1024►
◄background_color#000000►
CategoryBCNodes/image

Inputs (11)

NameTypeDefaultDescription
aspect_ratioCOMBO9 options: original, custom, 1:1, 3:2, 4:3, 16:9, +3
proportional_widthINT11–100000000—
proportional_heightINT11–100000000—
fitCOMBO3 options: letterbox, crop, fill
methodCOMBO6 options: lanczos, bicubic, hamming, bilinear, box, nearest
round_to_multipleCOMBO8 options: 8, 16, 32, 64, 128, 256, +2
scale_to_sideCOMBO6 options: None, longest, shortest, width, height, total_pixel(kilo pixel)
scale_to_lengthINT10244–100000000—
background_colorSTRING#000000—
imageoptIMAGE—
maskoptMASK—

Outputs (5)

NameTypeDescription
imageIMAGE—
maskMASK—
original_sizeBOX—
widthINT—
heightINT—