Visit ComfyUI Online for ready-to-use ComfyUI environment
Extract resolution dimensions from input images for AI art generation, ensuring consistency in size and aspect ratio.
The ImageGenResolutionFromImage
node is designed to extract the resolution dimensions from an input image, providing the width and height in pixels. This node is particularly useful for AI artists who need to generate images with specific dimensions that match the input image's resolution. By using this node, you can ensure that the generated images maintain the same aspect ratio and size as the original, which is crucial for tasks that require consistency in image dimensions. The node simplifies the process of obtaining these dimensions, making it easier to set up image generation workflows without manually calculating or inputting the resolution values.
The image
parameter is the input image from which the resolution dimensions will be extracted. This parameter expects an image in a format that the node can process, typically a numpy array representing the image data. The function of this parameter is to provide the source image whose width and height will be used to determine the output resolution. There are no specific minimum, maximum, or default values for this parameter, as it directly depends on the image you provide.
The IMAGE_GEN_WIDTH (INT)
output parameter represents the width of the input image in pixels. This value is crucial for setting the width of the generated image to match the original image's dimensions, ensuring consistency in the output.
The IMAGE_GEN_HEIGHT (INT)
output parameter represents the height of the input image in pixels. Similar to the width parameter, this value is used to set the height of the generated image, maintaining the original image's aspect ratio and size.
image
parameter before executing the node.© Copyright 2024 RunComfy. All Rights Reserved.