ComfyUI Node
PSN Resolution Scaler
Dynamically compute width/height from aspect ratio and megapixel budget.
PSN Resolution Scaler
- width
- height
◄aspect_ratio1.000►
◄target_megapixels1.000►
◄max_width2048►
◄max_height2048►
◄multiple_of8►
CategoryParametric/Image
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | FLOAT | 1.0000.0001–10000 | Aspect ratio. From 0.0001 to 10000. Default 1.0. |
| target_megapixels | FLOAT | 1.0000.0001–10000 | Target megapixels. From 0.0001 to 10000. Default 1.0. |
| max_width | INT | 20481–16384 | Max width. From 1 to 16384. Default 2048. |
| max_height | INT | 20481–16384 | Max height. From 1 to 16384. Default 2048. |
| multiple_of | INT | 81–1024 | Multiple of. From 1 to 1024. Default 8. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |