ComfyUI Node
Smart Upscale Calculator
Detects input image dimensions and calculates target width, height, and upscale factor for the target resolution (1k/2k/4k). Preserves aspect ratio. Scale capped at 4x. Outputs needs_upscale=True if scale > 1.
Smart Upscale Calculator
- image
- width
- height
- scale_factor
- needs_upscale
◄target_resolution2k►
CategoryPBRFUSION4/Utils
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| target_resolution | COMBO | 2k | 3 options: 1k, 2k, 4k |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| scale_factor | FLOAT | — |
| needs_upscale | BOOLEAN | — |