Visit ComfyUI Online for ready-to-use ComfyUI environment
Node for defining image/canvas dimensions in AI art projects, ensuring precise size control and meeting resolution requirements.
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.
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.
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.
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.
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
and height
parameters are set according to the resolution requirements of your project to avoid any issues with image quality or compatibility.MAX_RESOLUTION
constant to ensure your dimensions are within acceptable limits.MIN_RESOLUTION
or MAX_RESOLUTION
constants.© Copyright 2024 RunComfy. All Rights Reserved.