Nodes/ComfyUI_Image_Dimension_Scaler/Image Dimension Scaler
ComfyUI Node

Image Dimension Scaler

A ComfyUI node in image/util with 5 inputs and 4 outputs.

By MaxKruse·Created 27 days ago·Updated 27 days ago· 0
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)

NameTypeDefaultDescription
imageIMAGEInput image to measure dimensions from.
pixel_alignmentCOMBO8Round output dimensions to this multiple.
max_pixels_sideINT10241–8192Max total pixels = this value squared (e.g. 1024 means 1024x1024 max).
limit_largest_dimBOOLEANtrueIf enabled, cap the largest dimension at 1280.
largest_dim_capINT128064–8192Maximum value for the largest dimension when limit_largest_dim is enabled.

Outputs (4)

NameTypeDescription
widthINT
heightINT
width_floatFLOAT
height_floatFLOAT