Nodes/NH-Nodes/NH Smart Ratio Image Resize
ComfyUI Node

NH Smart Ratio Image Resize

A ComfyUI node in NH-Nodes/Resolution with 6 inputs and 8 outputs.

By jetthuangai·Created 5 months ago·Updated about 16 hours ago· 6
NH Smart Ratio Image Resize
  • image
  • image
  • width
  • height
  • info
  • source_aspect_ratio
  • target_aspect_ratio
  • selected_preset
  • resize_data
model_familyFLUX.2 Klein 9B
resolution_level1 MP
resize_modecover_crop
resize_methodlanczos
pad_color_hex#FFFFFF
CategoryNH-Nodes/Resolution

Inputs (6)

NameTypeDefaultDescription
imageIMAGE
model_familyCOMBOFLUX.2 Klein 9B5 options: FLUX.2 Klein 4B, FLUX.2 Klein 9B, FLUX.2 Dev, Qwen-Image, Z-Image
resolution_levelCOMBO1 MP12 options: 1 MP, 2 MP, 3 MP, 4 MP, 5 MP, 6 MP, +6
resize_modeCOMBOcover_crop3 options: cover_crop, contain_pad, stretch
resize_methodCOMBOlanczos8 options: lanczos, bicubic, bilinear, nearest, nearest-exact, area, +2
pad_color_hexSTRING#FFFFFF

Outputs (8)

NameTypeDescription
imageIMAGE
widthINT
heightINT
infoSTRING
source_aspect_ratioFLOAT
target_aspect_ratioFLOAT
selected_presetSTRING
resize_dataNH_RESIZE_DATA