ComfyUI > Nodes > ComfyUI-LogicUtils > Get Image Info

ComfyUI Node: Get Image Info

Class Name

GetImageInfoNode

Category
image
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

Install this extension via the ComfyUI Manager by searching for ComfyUI-LogicUtils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LogicUtils in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Get Image Info Description

Extracts image dimensions and pixel count for informed processing and analysis decisions.

Get Image Info:

The GetImageInfoNode is designed to extract essential information about an image, specifically its dimensions and total pixel count. This node is particularly useful for AI artists and developers who need to understand the size and scale of an image for further processing or analysis. By providing the width, height, and total number of pixels, this node allows you to make informed decisions about how to handle the image in subsequent steps of your workflow. Whether you're preparing images for training machine learning models or simply organizing your digital assets, the GetImageInfoNode offers a straightforward and efficient way to gather critical image data.

Get Image Info Input Parameters:

image

The image parameter is the sole input required by the GetImageInfoNode. It represents the image file from which you want to extract information. This parameter is crucial as it directly influences the node's ability to calculate the image's dimensions and pixel count. The image should be provided in a format that the node can process, typically as a PIL image object. There are no specific minimum or maximum values for this parameter, but the image must be valid and accessible for the node to function correctly.

Get Image Info Output Parameters:

WIDTH

The WIDTH output parameter provides the width of the input image in pixels. This value is essential for understanding the horizontal dimension of the image, which can impact how the image is displayed or processed in various applications. Knowing the width is particularly important when resizing images or ensuring compatibility with specific display requirements.

HEIGHT

The HEIGHT output parameter gives the height of the input image in pixels. Similar to the width, this value is crucial for understanding the vertical dimension of the image. The height is a key factor when considering the aspect ratio of the image, which is important for maintaining visual consistency across different platforms or devices.

TOTAL_PIXELS

The TOTAL_PIXELS output parameter calculates the total number of pixels in the image by multiplying the width and height. This value is significant for assessing the overall size and resolution of the image, which can affect storage requirements and processing time. A higher total pixel count generally indicates a more detailed image, which may be desirable for certain applications but could also require more resources to handle.

Get Image Info Usage Tips:

  • Ensure that the image input is in a compatible format, such as a PIL image object, to avoid processing errors.
  • Use the width and height outputs to maintain the aspect ratio when resizing images for different applications.
  • Consider the total pixel count when determining the storage and processing requirements for large batches of images.

Get Image Info Common Errors and Solutions:

Invalid image format

  • Explanation: The node expects the image input to be in a specific format, such as a PIL image object. If the image is not in this format, the node may not be able to process it.
  • Solution: Convert the image to a PIL image object before passing it to the node. You can use libraries like PIL or OpenCV to handle this conversion.

Image not found

  • Explanation: The node cannot locate the image file specified in the input parameter, possibly due to an incorrect file path or missing file.
  • Solution: Verify that the file path is correct and that the image file exists at the specified location. Ensure that the file is accessible and not corrupted.

Get Image Info Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LogicUtils
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.