ComfyUI > Nodes > ComfyUI 1hewNodes > Int Image Size

ComfyUI Node: Int Image Size

Class Name

1hew_IntImageSize

Category
1hewNodes/int
Author
1hew (Account age: 1113days)
Extension
ComfyUI 1hewNodes
Latest Updated
2026-04-17
Github Stars
0.03K

How to Install ComfyUI 1hewNodes

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

Int Image Size Description

Extracts image width and height from input tensor for seamless integration in workflows.

Int Image Size:

The 1hew_IntImageSize node is designed to extract and provide the dimensions of an image, specifically its width and height, from a given input image tensor. This node is particularly useful for AI artists and developers who need to work with image dimensions in their workflows, allowing them to easily retrieve and utilize these measurements for further processing or analysis. By leveraging the capabilities of PyTorch tensors, the node efficiently determines the size of the image, ensuring that users can seamlessly integrate this functionality into their creative or technical projects. The node's primary goal is to simplify the process of obtaining image dimensions, making it an essential tool for tasks that require precise image size information.

Int Image Size Input Parameters:

image

The image parameter is the input image tensor from which the node will extract the dimensions. This parameter is crucial as it serves as the source of data for the node's operation. The image should be provided as a PyTorch tensor, typically with at least three dimensions representing the batch size, height, and width of the image. The node will not function correctly if the input tensor does not meet these requirements, as it relies on the tensor's shape to determine the image size. There are no specific minimum, maximum, or default values for this parameter, but it is essential that the input is a valid image tensor.

Int Image Size Output Parameters:

width

The width output parameter represents the width of the input image in pixels. This value is extracted from the second-to-last dimension of the input tensor, assuming the tensor follows the standard format where the dimensions are ordered as batch size, channels, height, and width. The width is a crucial piece of information for any task that involves image processing, as it allows users to understand and manipulate the horizontal size of the image.

height

The height output parameter indicates the height of the input image in pixels. Similar to the width, this value is derived from the third-to-last dimension of the input tensor. Knowing the height of an image is essential for various applications, including resizing, cropping, and other image transformations, as it provides users with the vertical size of the image.

Int Image Size Usage Tips:

  • Ensure that the input image tensor is correctly formatted with at least three dimensions, as the node relies on this structure to extract the width and height.
  • Use the 1hew_IntImageSize node in conjunction with other image processing nodes to streamline workflows that require precise image dimension information.

Int Image Size Common Errors and Solutions:

Invalid image tensor

  • Explanation: The input image tensor does not have the required dimensions or is not a valid tensor.
  • Solution: Verify that the input is a properly formatted PyTorch tensor with at least three dimensions representing batch size, height, and width.

Tensor with less than three dimensions

  • Explanation: The input tensor has fewer than three dimensions, making it impossible to extract width and height.
  • Solution: Ensure that the input tensor is structured correctly, with dimensions for batch size, height, and width, before passing it to the node.

Int Image Size Related Nodes

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

Int Image Size