Visit ComfyUI Online for ready-to-use ComfyUI environment
Extract and display image dimensions for AI artists, simplifying size management and ensuring consistency in image processing tasks.
The D2 Get Image Size node is designed to extract and display the dimensions of an image, providing a straightforward way to understand the size of your image data. This node is particularly useful for AI artists who need to ensure their images meet specific size requirements for various applications or workflows. By automatically retrieving the width and height of an image, it simplifies the process of managing image dimensions, allowing you to focus on the creative aspects of your work without getting bogged down by technical details. The node is an essential tool for maintaining consistency and quality in your image processing tasks.
The images
parameter is a required input that represents the image data from which the dimensions will be extracted. It is expected to be in a format that the node can process, typically a tensor representation of the image. This parameter is crucial as it directly influences the output dimensions, and the node will not function without it.
The display
parameter is an optional input that allows you to provide a string for display purposes. It supports multiline text and has a default value of an empty string. This parameter does not affect the core functionality of the node but can be used to add descriptive information or notes related to the image size extraction process.
The width
output parameter provides the width of the input image in pixels. This value is crucial for understanding the horizontal dimension of your image and is essential for tasks that require precise image sizing.
The height
output parameter provides the height of the input image in pixels. This value is important for understanding the vertical dimension of your image and is necessary for ensuring your image meets specific height requirements.
images
parameter is correctly formatted and contains valid image data to avoid errors in dimension extraction.display
parameter to add notes or descriptions that can help you keep track of different image sizes, especially when working with multiple images.images
parameter does not contain valid image data or is not in the expected format.images
parameter is not provided, which is required for the node to function.images
parameter with valid image data before executing the node.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.