ComfyUI > Nodes > SDXL_sizing > width, height -> 'WIDTHxHEIGHT'

ComfyUI Node: width, height -> 'WIDTHxHEIGHT'

Class Name

get_aspect_from_ints

Category
sizing/input conversions
Author
Ser-Hilary (Account age: 1030days)
Extension
SDXL_sizing
Latest Updated
2024-05-23
Github Stars
0.03K

How to Install SDXL_sizing

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

width, height -> 'WIDTHxHEIGHT' Description

Converts image dimensions into a user-friendly string format for streamlined artistic workflows.

width, height -> 'WIDTHxHEIGHT':

The get_aspect_from_ints node is designed to facilitate the conversion of image dimensions into a string format that is easily interpretable and usable within various workflows. This node is particularly useful for AI artists who need to manage and manipulate image sizes without delving into complex calculations or technical details. By providing a straightforward method to convert width and height integers into a standardized string format, this node simplifies the process of handling image dimensions, making it easier to integrate into creative projects. The primary goal of this node is to streamline the input conversion process, ensuring that users can focus on their artistic endeavors without being bogged down by technical intricacies.

width, height -> 'WIDTHxHEIGHT' Input Parameters:

width

The width parameter represents the width of the image in pixels. It is an integer value that determines one dimension of the image size. The minimum value for this parameter is 0, and the maximum value is 100,000, with a default value of 0. Adjusting the width will directly impact the aspect ratio and the resulting string output, making it crucial for defining the horizontal dimension of your image.

height

The height parameter specifies the height of the image in pixels. Similar to the width, it is an integer value that defines the other dimension of the image size. The minimum value is 0, and the maximum value is 100,000, with a default value of 0. The height parameter is essential for determining the vertical dimension of your image, and it works in conjunction with the width to establish the overall aspect ratio.

width, height -> 'WIDTHxHEIGHT' Output Parameters:

input_str

The input_str output parameter is a string that represents the image dimensions in the format width x height. This output is crucial for conveying the size of the image in a concise and standardized manner, which can be easily used in various applications and workflows. The string format ensures compatibility and ease of use, allowing you to seamlessly integrate image dimension data into your projects.

width, height -> 'WIDTHxHEIGHT' Usage Tips:

  • Ensure that both the width and height parameters are set to values greater than zero to avoid generating an output that may not be meaningful or useful in your workflow.
  • Use this node to quickly convert image dimensions into a string format when preparing data for other nodes or systems that require dimension inputs in a standardized format.

width, height -> 'WIDTHxHEIGHT' Common Errors and Solutions:

Invalid dimension values

  • Explanation: If either the width or height is set to a negative value or exceeds the maximum limit, the node may not function as expected.
  • Solution: Ensure that both width and height are within the valid range of 0 to 100,000. Adjust any values that fall outside this range to prevent errors.

Zero dimensions

  • Explanation: Setting both width and height to zero will result in an output of 0x0, which may not be useful for most applications.
  • Solution: Provide meaningful non-zero values for both width and height to generate a valid aspect ratio string that can be used effectively in your projects.

width, height -> 'WIDTHxHEIGHT' Related Nodes

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

width, height -> 'WIDTHxHEIGHT'