Nodes/ComfyUI Smart Scaler/Aspect Ratio Adjuster
ComfyUI Node

Aspect Ratio Adjuster

A ComfyUI node in SmartScaler with 5 inputs and 2 outputs.

By babydjac·Created about a year ago·Updated about a year ago· 1
Aspect Ratio Adjuster
  • image
  • adjusted_image
  • new_ratio
target_ratio16:9
custom_ratio_width16.0
custom_ratio_height9.0
methodcrop
CategorySmartScaler

Inputs (5)

NameTypeDefaultDescription
imageIMAGE
target_ratioCOMBO16:94 options: 16:9, 4:3, 1:1, Custom
custom_ratio_widthFLOAT16.01–100
custom_ratio_heightFLOAT9.01–100
methodCOMBOcrop2 options: crop, pad

Outputs (2)

NameTypeDescription
adjusted_imageIMAGE
new_ratioSTRING