ComfyUI Node
Clamp Resolution
If either width or height exceeds max_size, scales both dimensions down to fit within max_size while preserving aspect ratio. Outputs was_clamped=True if clamping occurred.
Clamp Resolution
- width
- height
- was_clamped
◄width1024►
◄height1024►
◄max_size2048►
CategoryPBRFUSION4/Utils
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 10241–16384 | — |
| height | INT | 10241–16384 | — |
| max_size | INT | 204864–8192 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| was_clamped | BOOLEAN | — |