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

NH Ratio Preset Image Resize

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

By jetthuangai·Created 5 months ago·Updated about 15 hours ago· 6
NH Ratio Preset 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
target_ratio1:1
resize_modecrop
resize_methodlanczos
pad_color_hex#FFFFFF
CategoryNH-Nodes/Resolution

Inputs (7)

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
target_ratioCOMBO1:111 options: 1:1, 3:4, 2:3, 7:9, 9:16, 9:21, +5
resize_modeCOMBOcrop3 options: crop, pad, fill
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