EasyUse/Imagegenerated

ImagePixelPerfect(imagePixelPerfect)

ImagePixelPerfect is a small helper node that takes an input image and a resize mode, then returns a single integer value representing the pixel-perfect resolut...

image Pixel Perfect

image
resolution
resize_mode
COMBO
Easy Use

ImagePixelPerfect is a small helper node that takes an input image and a resize mode, then returns a single integer value representing the pixel-perfect resolution or dimension for that image under the chosen mode. It is useful when a downstream node expects an integer size value rather than an image tensor.

Inputs

image

The source image used for the calculation. The node reads the image’s pixel dimensions and applies the selected resize mode to determine the appropriate integer result.

resize_mode

A dropdown widget that selects the resize behavior to use for the calculation. The available options are provided by the widget itself. Choose the mode that matches how the image will be resized, cropped, or padded in the next stage of your workflow.

Outputs

INT

A single integer value representing the computed pixel-perfect result for the given image and resize mode. Use this value to drive resolution fields or size parameters in other nodes.

Usage Notes

  • This node does not output an image; it only outputs a scalar integer.
  • Connect the integer output to resolution or dimension inputs on nodes that need a single size value.
  • The correct value depends on both the original image dimensions and the resize mode you select, so match the widget choice to the resize or crop strategy you plan to use downstream.

Comments

Sign in with GitHub to join the discussion.

Loading comments…