ComfyUI Node
Image Dimension Scaler
A ComfyUI node in image/util with 5 inputs and 4 outputs.
Image Dimension Scaler
- image
- width
- height
- width_float
- height_float
◄pixel_alignment8►
◄max_pixels_side1024►
◄limit_largest_dimtrue►
◄largest_dim_cap1280►
Categoryimage/util
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image to measure dimensions from. | |
| pixel_alignment | COMBO | 8 | Round output dimensions to this multiple. |
| max_pixels_side | INT | 10241–8192 | Max total pixels = this value squared (e.g. 1024 means 1024x1024 max). |
| limit_largest_dim | BOOLEAN | true | If enabled, cap the largest dimension at 1280. |
| largest_dim_cap | INT | 128064–8192 | Maximum value for the largest dimension when limit_largest_dim is enabled. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| width_float | FLOAT | — |
| height_float | FLOAT | — |