ComfyUI Node
Aspect Ratio for 2step Latent Sample
Calculate width and height for 2-step latent sampling based on aspect ratio and base resolution. All outputs are divisible by 16.
Aspect Ratio for 2step Latent Sample
- image
- width
- height
- ratio_string
- ratio_float
◄base_resolution512►
◄aspect_ratio1:1 Square►
Categoryimage/preprocessing
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| base_resolution | COMBO | 512 | Base resolution for the shorter side (256-1024 in 64-step increments) |
| aspect_ratio | COMBO | 1:1 Square | Select aspect ratio. Ignored if image is connected. |
| imageopt | IMAGE | Optional input image. If provided, its aspect ratio will be used instead of the dropdown selection. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| ratio_string | STRING | — |
| ratio_float | FLOAT | — |