ComfyUI Node
Hot Resolution Mode Switch
Switch between a bucketed Resolution Selector (aspect ratio + megapixels + multiple), a manual width/height pair, or the size of a connected image. Only the active mechanic's controls are shown on the node, and the image branch only runs in From Image mode.
Hot Resolution Mode Switch
- image
- width
- height
◄modeResolution Selector►
◄aspect_ratio1:1 (Square)►
◄megapixels1.0►
◄multiple8►
◄width512►
◄height512►
CategoryHotComfy/Switches
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| mode | COMBO | Resolution Selector | Which mechanic drives the output width/height. |
| aspect_ratio | COMBO | 1:1 (Square) | The aspect ratio for the bucketed dimensions. |
| megapixels | FLOAT | 1.00.1–16 | Target total megapixels. 1.0 MP ≈ 1024x1024 for square. |
| multiple | INT | 88–128 | Nearest multiple of the result to round the bucketed resolution to. |
| width | INT | 51264–16384 | Manual width. Used when mode is Manual Resolution. |
| height | INT | 51264–16384 | Manual height. Used when mode is Manual Resolution. |
| imageopt | IMAGE | Image to read the size from. Used when mode is From Image; ignored (and not evaluated) otherwise. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | Selected width in pixels. |
| height | INT | Selected height in pixels. |