ComfyUI Node: Width/Height Literal

Class Name

Width_Height Literal

Category
ImageSaverTools/utils
Author
Girish Gopaul (Account age: 4247days)
Extension
Save Image with Generation Metadata
Latest Updated
2024-05-22
Github Stars
0.15K

How to Install Save Image with Generation Metadata

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

Width/Height Literal Description

Node for defining image/canvas dimensions in AI art projects, ensuring precise size control and meeting resolution requirements.

Width/Height Literal:

The Width_Height Literal node is designed to provide a straightforward way to define and manage the dimensions of an image or canvas within your AI art projects. This node allows you to specify the width and height parameters, which can be crucial for ensuring that your generated images meet specific size requirements. By using this node, you can easily set and adjust the dimensions, making it an essential tool for tasks that require precise control over image size. This can be particularly beneficial when working with models or processes that have strict resolution constraints or when you need to maintain consistency across multiple outputs.

Width/Height Literal Input Parameters:

width

The width parameter specifies the width of the image or canvas in pixels. This parameter allows you to define the horizontal dimension of your output, ensuring that it meets your specific requirements. The minimum value for this parameter is 0, and the maximum value is determined by the MAX_RESOLUTION constant. The default value is set to 1024 pixels. Adjusting this parameter will directly impact the width of the generated image, so it is important to set it according to your project's needs.

height

The height parameter specifies the height of the image or canvas in pixels. This parameter allows you to define the vertical dimension of your output, ensuring that it meets your specific requirements. The minimum value for this parameter is 0, and the maximum value is determined by the MAX_RESOLUTION constant. The default value is set to 1024 pixels. Adjusting this parameter will directly impact the height of the generated image, so it is important to set it according to your project's needs.

Width/Height Literal Output Parameters:

width

The width output parameter returns the width value that was set as an input. This value represents the horizontal dimension of the image or canvas and is crucial for ensuring that the generated output meets the specified width requirements.

height

The height output parameter returns the height value that was set as an input. This value represents the vertical dimension of the image or canvas and is crucial for ensuring that the generated output meets the specified height requirements.

Width/Height Literal Usage Tips:

  • Ensure that the width and height parameters are set according to the resolution requirements of your project to avoid any issues with image quality or compatibility.
  • Use this node in conjunction with other nodes that require specific dimensions to maintain consistency and avoid resizing issues.
  • When working with models that have strict resolution constraints, double-check the MAX_RESOLUTION constant to ensure your dimensions are within acceptable limits.

Width/Height Literal Common Errors and Solutions:

Invalid width or height value

  • Explanation: This error occurs when the specified width or height value is outside the acceptable range defined by the MIN_RESOLUTION or MAX_RESOLUTION constants.
  • Solution: Ensure that the width and height values are within the allowed range. Adjust the values to be between the minimum and maximum limits.

Mismatched dimensions

  • Explanation: This error occurs when the width and height values do not match the expected dimensions for a specific model or process.
  • Solution: Verify the required dimensions for your model or process and adjust the width and height parameters accordingly to match the expected values.

Width/Height Literal Related Nodes

Go back to the extension to check out more related nodes.
Save Image with Generation Metadata
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.