Nodes/ComfyUI-UniversalToolkit/Image Scale By Aspect Ratio (UTK)
ComfyUI Node

Image Scale By Aspect Ratio (UTK)

A ComfyUI node in UniversalToolkit/Image with 12 inputs and 6 outputs.

By whmc76·Created about a year ago·Updated 24 days ago· 70
Image Scale By Aspect Ratio (UTK)
  • image
  • mask
  • image
  • mask
  • original_size
  • width
  • height
  • batch_count
aspect_ratio
proportional_width1
proportional_height1
fit
method
round_to_multiple
scale_to_side
scale_to_length1024
background_colorblack
crop_positioncenter
CategoryUniversalToolkit/Image

Inputs (12)

NameTypeDefaultDescription
aspect_ratioCOMBO9 options: original, custom, 1:1, 3:2, 4:3, 16:9, +3
proportional_widthINT11–100000000
proportional_heightINT11–100000000
fitCOMBO7 options: stretch, resize, pad, pad_edge, pad_edge_pixel, crop, +1
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_colorCOMBOblack9 options: black, white, gray, red, green, blue, +3
crop_positionCOMBOcenter5 options: center, top, bottom, left, right
imageoptIMAGE
maskoptMASK

Outputs (6)

NameTypeDescription
imageIMAGE
maskMASK
original_sizeBOX
widthINT
heightINT
batch_countINT