Visit ComfyUI Online for ready-to-use ComfyUI environment
Extend image canvas with customizable space and color, enhanced from original version for artists' flexibility.
The LayerUtility: ExtendCanvasV2
node is designed to extend the canvas of an image by adding additional space around its edges. This can be particularly useful for artists who need to expand their working area without altering the original content of the image. The node allows you to specify the amount of space to add on each side of the image (top, bottom, left, and right) and fill this space with a specified color. Additionally, it supports the use of a mask to control which areas of the extended canvas are affected, providing greater flexibility and precision in your artwork. This node is an enhanced version of the original ExtendCanvas
node, offering improved functionality and more options for customization.
This parameter takes the input image that you want to extend. The image serves as the base upon which the canvas extension will be applied.
This boolean parameter determines whether the mask should be inverted. If set to True
, the areas of the mask that are normally excluded will be included, and vice versa. This can be useful for selectively applying the canvas extension.
This parameter specifies the amount of space to add to the top of the image. The value is typically given in pixels. Increasing this value will add more space above the original image.
This parameter specifies the amount of space to add to the bottom of the image. The value is typically given in pixels. Increasing this value will add more space below the original image.
This parameter specifies the amount of space to add to the left side of the image. The value is typically given in pixels. Increasing this value will add more space to the left of the original image.
This parameter specifies the amount of space to add to the right side of the image. The value is typically given in pixels. Increasing this value will add more space to the right of the original image.
This parameter defines the color to use for the extended canvas areas. The color can be specified in various formats, such as RGB values. This allows you to match the extended areas with the existing background or any other desired color.
This optional parameter allows you to provide a mask that controls which areas of the extended canvas are affected. The mask can be used to selectively apply the extension, providing greater control over the final result.
This output parameter provides the resulting image after the canvas has been extended. The extended image includes the original content along with the additional space added according to the specified parameters.
© Copyright 2024 RunComfy. All Rights Reserved.