Visit ComfyUI Online for ready-to-use ComfyUI environment
Create canvas dimensions for images, with optional landscape mode for AI artists.
The CanvasCreatorSimple node is designed to create canvas dimensions for latent images, with an optional landscape mode that swaps the width and height. This node is particularly useful for AI artists who need to generate images with specific dimensions and orientations. By providing a straightforward interface, it allows you to easily set the width and height of your canvas, and optionally switch to landscape mode, making it versatile for various artistic needs. The main goal of this node is to simplify the process of defining canvas dimensions, ensuring that your images are generated with the correct proportions and orientation.
The Width parameter specifies the width of the canvas in pixels. It allows you to set the desired width for your image, ensuring that it meets your specific requirements. The minimum value for this parameter is 16 pixels, and it can be increased in steps of 8 pixels. The default value is set to 576 pixels. Adjusting this parameter will directly impact the width of the generated canvas.
The Height parameter specifies the height of the canvas in pixels. Similar to the Width parameter, it allows you to set the desired height for your image. The minimum value for this parameter is 16 pixels, and it can be increased in steps of 8 pixels. The default value is set to 1024 pixels. Adjusting this parameter will directly impact the height of the generated canvas.
The Landscape parameter is a boolean switch that, when enabled, swaps the width and height of the canvas. This is useful for creating landscape-oriented images without manually adjusting the dimensions. The default value for this parameter is False, meaning the canvas will be in portrait mode by default. Enabling this parameter will switch the canvas to landscape mode, swapping the width and height values.
The Width output parameter returns the width of the generated canvas. If the Landscape parameter is disabled, this value will be the same as the input Width. If the Landscape parameter is enabled, this value will be the same as the input Height.
The Height output parameter returns the height of the generated canvas. If the Landscape parameter is disabled, this value will be the same as the input Height. If the Landscape parameter is enabled, this value will be the same as the input Width.
Width and Height values and leave the Landscape parameter disabled.Width and Height values and enable the Landscape parameter to swap the dimensions.Width and Height to ensure compatibility with other nodes and processes that may require specific dimension increments.Width or Height value provided is outside the allowed range (less than 16 pixels or not a multiple of 8).Width and Height values are within the allowed range and are multiples of 8 pixels.Landscape parameter is not correctly swapping the width and height values.Landscape parameter is set to True if you want to switch to landscape mode. Double-check the input values to ensure they are correctly assigned.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.