ComfyUI Node
π Image Resize to Nearest Model Resolution
A ComfyUI node in riversidenodes with 4 inputs and 3 outputs.
π Image Resize to Nearest Model Resolution
- image
- IMAGE
- WIDTH
- HEIGHT
βmodelβΎβΊ
βinterpolation_modeβΎβΊ
βresize_longest_side0βΊ
Categoryriversidenodes
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | β | |
| model | COMBO | 10 options: Qwen_Image, Z_Image_Turbo, Ernie_Image_Turbo, SDXL, Flux, Flux2, +4 | |
| interpolation_mode | COMBO | 5 options: bicubic, bilinear, lanczos, nearest, nearest exact | |
| resize_longest_side | INT | 00β8192 | 0 = use the model's native resolution exactly. Any other value: the best-matching resolution is scaled proportionally so its longest side equals this number (rounded to the nearest 8 px). |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | β |
| WIDTH | INT | β |
| HEIGHT | INT | β |