Visit ComfyUI Online for ready-to-use ComfyUI environment
Extract image resolution (width, height) from image tensor for AI artists, ensuring consistency in image sizes.
The Get resolution [Crystools] node is designed to extract the resolution of an image, specifically its width and height, from a given image tensor. This node is particularly useful for AI artists who need to work with images of specific dimensions or need to ensure consistency in image sizes across different projects. By providing the resolution in a straightforward manner, it simplifies the process of managing and manipulating images within your workflow. The node leverages the getResolutionByTensor
function to accurately determine the dimensions of the image, making it an essential tool for tasks that require precise image size information.
The image
parameter is the primary input for this node and expects an image tensor. This tensor represents the image whose resolution you want to determine. The function will analyze this tensor to extract the width and height of the image. There are no specific minimum, maximum, or default values for this parameter as it directly depends on the image you provide.
The width
output parameter represents the width of the input image in pixels. This value is extracted from the image tensor and provides a clear indication of the horizontal dimension of the image. Understanding the width is crucial for tasks that require specific image dimensions or for ensuring consistency across multiple images.
The height
output parameter represents the height of the input image in pixels. Similar to the width, this value is derived from the image tensor and indicates the vertical dimension of the image. Knowing the height is essential for maintaining the aspect ratio and for tasks that involve image resizing or cropping.
image
parameter is not provided.© Copyright 2024 RunComfy. All Rights Reserved.