ComfyUI Node
Find Perfect Resolution
A ComfyUI node in utils with 9 inputs and 5 outputs.
Find Perfect Resolution
- image
- mask
- width
- height
- IMAGE
- mask_output
- resolution_info
◄desired_width0►
◄desired_height0►
◄divisible_by16►
◄upscalefalse►
◄upscale_methodlanczos►
◄small_image_modenone►
◄pad_color#000000►
Categoryutils
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| desired_width | INT | 00–8192 | — |
| desired_height | INT | 00–8192 | — |
| divisible_by | INT | 161–128 | — |
| maskopt | MASK | — | |
| upscaleopt | BOOLEAN | false | — |
| upscale_methodopt | COMBO | lanczos | 4 options: lanczos, bilinear, bicubic, nearest |
| small_image_modeopt | COMBO | none | 3 options: none, crop, pad |
| pad_coloropt | STRING | #000000 | — |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| IMAGE | IMAGE | — |
| mask_output | MASK | — |
| resolution_info | STRING | — |