ComfyUI > Nodes > Comfyui_PDuse > PD:GetImageSize

ComfyUI Node: PD:GetImageSize

Class Name

PD_GetImageSize

Category
Masquerade Nodes
Author
7BEII (Account age: 453days)
Extension
Comfyui_PDuse
Latest Updated
2026-03-25
Github Stars
0.05K

How to Install Comfyui_PDuse

Install this extension via the ComfyUI Manager by searching for Comfyui_PDuse
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui_PDuse 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

PD:GetImageSize Description

Extracts and provides image dimensions, aiding AI artists in seamless image processing workflows.

PD:GetImageSize:

The PD_GetImageSize node is designed to extract and provide the dimensions of an image, specifically its width and height. This node is particularly useful for AI artists and designers who need to understand the size of their images for further processing or adjustments. By offering a straightforward method to retrieve these dimensions, the node simplifies workflows that involve image manipulation, ensuring that users can easily access essential information about their images without delving into complex technical details. The primary goal of this node is to facilitate seamless integration into image processing pipelines, allowing users to focus on creative tasks while the node handles the technical aspects of dimension retrieval.

PD:GetImageSize Input Parameters:

image

The image parameter is the primary input for the PD_GetImageSize node. It expects an image tensor, which is a structured representation of the image data. This parameter is crucial as it provides the node with the necessary data to extract the width and height. The image should be in a format that the node can interpret, typically a tensor with dimensions corresponding to batch size, height, width, and channels. There are no specific minimum or maximum values for this parameter, but the image must be valid and non-null for the node to function correctly.

PD:GetImageSize Output Parameters:

width

The width output parameter represents the horizontal dimension of the input image. It provides the width in pixels, allowing users to understand how wide the image is. This information is essential for tasks that require precise control over image dimensions, such as resizing or cropping.

height

The height output parameter indicates the vertical dimension of the input image. It provides the height in pixels, giving users insight into how tall the image is. Knowing the height is crucial for maintaining aspect ratios and ensuring that images fit within specific design constraints.

PD:GetImageSize Usage Tips:

  • Ensure that the input image is correctly formatted and non-null to avoid errors and ensure accurate dimension retrieval.
  • Use the width and height outputs to inform subsequent image processing steps, such as resizing or cropping, to maintain desired aspect ratios.

PD:GetImageSize Common Errors and Solutions:

No image provided to PD:GetImageSize node

  • Explanation: This error occurs when the input image parameter is null or not provided to the node.
  • Solution: Verify that a valid image is connected to the node's input parameter before execution.

Invalid image format

  • Explanation: The node expects the image to be in a specific tensor format, and this error arises if the format is incorrect.
  • Solution: Ensure that the image is in the correct tensor format, typically with dimensions for batch size, height, width, and channels.

PD:GetImageSize Related Nodes

Go back to the extension to check out more related nodes.
Comfyui_PDuse
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.