Run ComfyUI Easily with InstaSD

Skip the complex setup and run ComfyUI online. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

GetImageSize+

GetImageSize+ Node Documentation

Overview

The GetImageSize+ node is an essential utility within the ComfyUI Essentials repository. This node is designed to extract the dimensions and the number of frames (count) from an image. It is a simple yet powerful tool that helps users retrieve image size information, which can be crucial in managing and processing images within workflows.

Functionality

The GetImageSize+ node is specifically crafted to assess an image and provide three key pieces of information:

  1. Width: The width of the image in pixels.
  2. Height: The height of the image in pixels.
  3. Count: The number of image frames when dealing with batches of images.

This node is essential in scenarios where image dimensions are required for subsequent processing steps, such as resizing, cropping, or tiling images. It aids in ensuring compatibility with other nodes that require specific image sizes to operate effectively.

Input

The GetImageSize+ node accepts the following input:

  • Image: The image or batch of images from which you want to extract size information. This input is expected to be an image in the form processed by the ComfyUI framework.

Outputs

Upon execution, the GetImageSize+ node produces the following outputs:

  1. Width (INT): The width of the input image in pixels. If the input is a batch of images, this refers to the width of each image in the batch.
  2. Height (INT): The height of the input image in pixels. Similar to width, this denotes the height of each image in a batch.
  3. Count (INT): The count of frames in the input image. For single images, this value is always 1. For batches, this reflects the number of images within the batch.

Usage in ComfyUI Workflows

The GetImageSize+ node can be integrated into ComfyUI workflows in various ways:

  • Image Preprocessing: Before manipulating images (e.g., resizing or cropping), use this node to determine the image dimensions. This ensures that subsequent processing nodes receive the correct parameters.
  • Batch Processing: When working with batches of images, use the count output to manage iteration over the batch or to parallelize operations based on the number of frames.
  • Conditional Workflows: Develop conditional workflows that adapt based on the retrieved image size, such as resizing images only if they exceed specific dimensions.

Special Features or Considerations

  • Batch Compatibility: The GetImageSize+ node seamlessly handles both single images and batches of images, making it versatile in workflows that process multiple images at once.
  • Integration: This node is part of the ComfyUI Essentials repository and is in "maintenance only" mode, indicating stable functionality with potential for future updates if crucial changes are required.
  • Ease of Use: As a utility node, it provides straightforward outputs without altering the input image, ensuring simplicity and ease of integration within larger workflows.

In conclusion, the GetImageSize+ node is an invaluable utility for users working within the ComfyUI environment, offering critical image size details to aid in efficient and informed image processing decisions.

Want to try ComfyUI_essentials without installing anything? Run ComfyUI online on InstaSD's cloud GPUs — no setup required.