ComfyUI Node
Resize Dimensions (W/H)
Compute latent-safe width/height from an image's aspect ratio (or fixed sizes), and also output a matching empty LATENT batch so a separate Empty Latent Image node isn't needed. Pick a mode and a latent_type (16ch for SD3/Flux/Qwen, 4ch for SD1.5/SDXL). Does not resample the image.
Resize Dimensions (W/H)
- image
- width
- height
- latent
◄mode▾►
◄edge_length1080►
◄width_a1024►
◄height_a1024►
◄width_b1024►
◄height_b576►
◄round_to8►
◄latent_type▾►
◄batch_size1►
Categoryimage/size
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mode | COMBO | 4 options: long edge, short edge, set size A, set size B | |
| edge_length | INT | 10801–16384 | — |
| width_a | INT | 10241–16384 | — |
| height_a | INT | 10241–16384 | — |
| width_b | INT | 10241–16384 | — |
| height_b | INT | 5761–16384 | — |
| round_to | COMBO | 8 | 5 options: 8, 16, 32, 64, 1 |
| latent_type | COMBO | 2 options: SD3 / Flux / Qwen (16ch), SDXL / SD1.5 (4ch) | |
| batch_size | INT | 11–4096 | Number of empty latents in the batch. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| latent | LATENT | — |