ComfyUI Node
NH Ratio Preset Image Resize
A ComfyUI node in NH-Nodes/Resolution with 7 inputs and 8 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| model_family | COMBO | FLUX.2 Klein 9B | 5 options: FLUX.2 Klein 4B, FLUX.2 Klein 9B, FLUX.2 Dev, Qwen-Image, Z-Image |
| resolution_level | COMBO | 1 MP | 12 options: 1 MP, 2 MP, 3 MP, 4 MP, 5 MP, 6 MP, +6 |
| target_ratio | COMBO | 1:1 | 11 options: 1:1, 3:4, 2:3, 7:9, 9:16, 9:21, +5 |
| resize_mode | COMBO | crop | 3 options: crop, pad, fill |
| resize_method | COMBO | lanczos | 8 options: lanczos, bicubic, bilinear, nearest, nearest-exact, area, +2 |
| pad_color_hex | STRING | #FFFFFF | — |
Outputs (8)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| width | INT | — |
| height | INT | — |
| info | STRING | — |
| source_aspect_ratio | FLOAT | — |
| target_aspect_ratio | FLOAT | — |
| selected_preset | STRING | — |
| resize_data | NH_RESIZE_DATA | — |