Visit ComfyUI Online for ready-to-use ComfyUI environment
Extract image dimensions for resizing, cropping, or alignment.
The Get Image Size node is designed to extract the dimensions of an image, providing you with its width and height. This node is particularly useful when you need to know the size of an image for further processing or adjustments. By using this node, you can easily obtain the exact dimensions of any given image, which can be crucial for tasks such as resizing, cropping, or aligning images within your projects. The node operates by analyzing the image and returning its width and height as integer values, ensuring you have precise measurements to work with.
The image
parameter is the only required input for the Get Image Size node. It expects an image file, which the node will analyze to determine its dimensions. The image should be provided in a format that the node can process, typically as an IMAGE
type. This parameter is crucial as it directly impacts the node's ability to return accurate 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 width
output parameter represents the width of the input image in pixels. This integer value is crucial for understanding the horizontal dimension of the image, which can be used for various purposes such as resizing, layout adjustments, or ensuring consistency across multiple images.
The height
output parameter represents the height of the input image in pixels. This integer value is essential for understanding the vertical dimension of the image, which can be used for tasks such as cropping, scaling, or maintaining aspect ratios in your projects.
© Copyright 2024 RunComfy. All Rights Reserved.