EasyUse/Imagegenerated

ImageSize(imageSize)

The ImageSize node returns the pixel dimensions of an input image. It takes any standard IMAGE tensor and outputs its width and height as two integer values.

image Size

image
width_int
height_int
Easy Use

Description

The ImageSize node returns the pixel dimensions of an input image. It takes any standard IMAGE tensor and outputs its width and height as two integer values. This is useful for downstream logic that needs to know the spatial size of an image, such as calculating aspect ratios, scaling factors, or generating resolution-dependent parameters.

Inputs

NameTypeDescription
imageIMAGEThe input image whose dimensions will be measured.

Outputs

NameTypeDescription
widthINTThe width of the image in pixels.
heightINTThe height of the image in pixels.

Usage Notes

  • The outputs are plain integers representing the pixel dimensions of the input image.
  • The first output is always the width, and the second output is always the height.
  • The node works with batched IMAGE tensors; the reported dimensions are the spatial dimensions of the image frames.
  • This node is useful for creating dynamic workflows where later nodes depend on the input image's resolution.

Comments

Sign in with GitHub to join the discussion.

Loading comments…