Nodes/ComfyUI-ResizeDimensions/Resize Dimensions (W/H)
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.

By normbarrette-arch·Created 2 months ago·Updated 2 months ago· 0
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)

NameTypeDefaultDescription
imageIMAGE
modeCOMBO4 options: long edge, short edge, set size A, set size B
edge_lengthINT10801–16384
width_aINT10241–16384
height_aINT10241–16384
width_bINT10241–16384
height_bINT5761–16384
round_toCOMBO85 options: 8, 16, 32, 64, 1
latent_typeCOMBO2 options: SD3 / Flux / Qwen (16ch), SDXL / SD1.5 (4ch)
batch_sizeINT11–4096Number of empty latents in the batch.

Outputs (3)

NameTypeDescription
widthINT
heightINT
latentLATENT