ComfyUI Node
XResolution
Resolution width and height settings with preset, scaling, swap, divisible adjustment and offset support
XResolution
- image_or_mask
- width
- height
◄presetCustom►
◄width1280►
◄height720►
◄scale1.0►
◄swapfalse►
◄divisible_modeDisabled►
◄divisible16►
◄width_offset0►
◄height_offset0►
Category♾️ Xz3r0/Workflow-Processing
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| preset | COMBO | Custom | Resolution preset (used only when image input is not connected; if preset is not Custom, it overrides custom width/height) |
| width | INT | 12801–16384 | Custom resolution width (used only when preset is Custom and image input is not connected) |
| height | INT | 7201–16384 | Custom resolution height (used only when preset is Custom and image input is not connected) |
| scale | FLOAT | 1.00.01–100 | Scale multiplier |
| swap | BOOLEAN | false | Swap width and height |
| divisible_mode | COMBO | Disabled | How to adjust resolution to be divisible: Disabled=no adjustment, Nearest=round to nearest multiple, Up=round up, Down=round down |
| divisible | INT | 161–128 | Make resolution divisible by this number (set to 1 to disable, common values: 8, 16, 32, 64) |
| width_offset | INT | 0-128–128 | Add offset to output width (positive=increase, negative=decrease) |
| height_offset | INT | 0-128–128 | Add offset to output height (positive=increase, negative=decrease) |
| image_or_maskopt | IMAGE,MASK | Image or mask input for base resolution (takes priority over preset and custom width/height) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | Output resolution width (after preset, scaling, swap, divisible adjustment, and offset) |
| height | INT | Output resolution height (after preset, scaling, swap, divisible adjustment, and offset) |