ComfyUI Node
Mpi Scaled Dimensions
Scale image dimensions proportionally to target size, and output the image resized to those dimensions.
Mpi Scaled Dimensions
- image
- scaled_width
- scaled_height
- is_portrait
- scaled_image
◄size720►
◄sidetrue►
◄upscale_methodlanczos►
CategoryMpiNodes/ImgOps
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| size | INT | 7200–4096 | If 0, it will output the original dimensions |
| side | BOOLEAN | true | — |
| upscale_method | COMBO | lanczos | Interpolation used to resize the scaled_image output. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| scaled_width | INT | — |
| scaled_height | INT | — |
| is_portrait | BOOLEAN | — |
| scaled_image | IMAGE | — |