ComfyUI Node
CB Nearest Resolution ⚡️
Calculates the nearest resolution for an input image/video that matches chosen megapixels and divisible_by, while keeping the aspect ratio closest to the original. Connect output to any resize node.
CB Nearest Resolution ⚡️
- image
- width
- height
◄megapixels1.00►
◄divisible_by32►
CategoryCoolB Nodes ⚡️
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| megapixels | FLOAT | 1.000.01–100 | — |
| divisible_by | INT | 321–1024 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |