ComfyUI  >  Nodes  >  Crystools >  🪛 Get resolution

ComfyUI Node: 🪛 Get resolution

Class Name

Get resolution [Crystools]

Category
crystools 🪛/Image
Author
Crystian (Account age: 4118 days)
Extension
Crystools
Latest Updated
6/20/2024
Github Stars
0.5K

How to Install Crystools

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

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

Run ComfyUI Online

🪛 Get resolution Description

Extract image resolution (width, height) from image tensor for AI artists, ensuring consistency in image sizes.

Get resolution [Crystools]:

The Get resolution [Crystools] node is designed to extract the resolution of an image, specifically its width and height, from a given image tensor. This node is particularly useful for AI artists who need to work with images of specific dimensions or need to ensure consistency in image sizes across different projects. By providing the resolution in a straightforward manner, it simplifies the process of managing and manipulating images within your workflow. The node leverages the getResolutionByTensor function to accurately determine the dimensions of the image, making it an essential tool for tasks that require precise image size information.

Get resolution [Crystools] Input Parameters:

image

The image parameter is the primary input for this node and expects an image tensor. This tensor represents the image whose resolution you want to determine. The function will analyze this tensor to extract the width and height of the image. There are no specific minimum, maximum, or default values for this parameter as it directly depends on the image you provide.

Get resolution [Crystools] Output Parameters:

width

The width output parameter represents the width of the input image in pixels. This value is extracted from the image tensor and provides a clear indication of the horizontal dimension of the image. Understanding the width is crucial for tasks that require specific image dimensions or for ensuring consistency across multiple images.

height

The height output parameter represents the height of the input image in pixels. Similar to the width, this value is derived from the image tensor and indicates the vertical dimension of the image. Knowing the height is essential for maintaining the aspect ratio and for tasks that involve image resizing or cropping.

Get resolution [Crystools] Usage Tips:

  • Ensure that the image tensor you provide is correctly formatted and contains valid image data to get accurate resolution values.
  • Use the width and height outputs to verify that your images meet the required dimensions for your specific project or application.

Get resolution [Crystools] Common Errors and Solutions:

Invalid image tensor

  • Explanation: The provided image tensor is not valid or is incorrectly formatted.
  • Solution: Verify that the image tensor is correctly formatted and contains valid image data before passing it to the node.

Missing image input

  • Explanation: The image parameter is not provided.
  • Solution: Ensure that you provide a valid image tensor as input to the node to obtain the resolution values.

🪛 Get resolution Related Nodes

Go back to the extension to check out more related nodes.
Crystools
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.