Visit ComfyUI Online for ready-to-use ComfyUI environment
Extract image dimensions for precise image processing control in AI workflows.
The GetImage_(Width&Height) _O node is designed to extract the width and height dimensions of an image. This node is particularly useful for AI artists who need to programmatically access and utilize the dimensions of an image within their workflows. By providing the width and height, this node allows for precise control over image processing tasks, such as resizing, cropping, or scaling, ensuring that subsequent operations can be tailored to the specific dimensions of the input image. This functionality is essential for maintaining consistency and accuracy in image manipulation tasks.
The image
parameter is the input image from which the width and height will be extracted. This parameter expects an image in a format that the node can process. The image serves as the source for obtaining the dimensions, and its quality and format can impact the accuracy of the extracted width and height values. There are no specific minimum, maximum, or default values for this parameter, as it simply requires a valid image input.
The first output parameter is the width of the input image. This integer value represents the number of pixels along the horizontal axis of the image. Understanding the width is crucial for tasks that involve horizontal scaling, alignment, or any operation that depends on the image's horizontal dimension.
The second output parameter is the height of the input image. This integer value represents the number of pixels along the vertical axis of the image. Knowing the height is essential for vertical scaling, alignment, or any operation that relies on the image's vertical dimension.
© Copyright 2024 RunComfy. All Rights Reserved.