ComfyUI > Nodes > ComfyUI Layer Style > LayerUtility: ExtendCanvas V2

ComfyUI Node: LayerUtility: ExtendCanvas V2

Class Name

LayerUtility: ExtendCanvasV2

Category
😺dzNodes/LayerUtility
Author
chflame163 (Account age: 445days)
Extension
ComfyUI Layer Style
Latest Updated
2024-06-24
Github Stars
0.64K

How to Install ComfyUI Layer Style

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

LayerUtility: ExtendCanvas V2 Description

Extend image canvas with customizable space and color, enhanced from original version for artists' flexibility.

LayerUtility: ExtendCanvas V2:

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.

LayerUtility: ExtendCanvas V2 Input Parameters:

image

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.

invert_mask

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.

top

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.

bottom

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.

left

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.

color

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.

mask

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.

LayerUtility: ExtendCanvas V2 Output Parameters:

extended_image

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.

LayerUtility: ExtendCanvas V2 Usage Tips:

  • To maintain the visual consistency of your artwork, use a color for the extended canvas that matches the background or surrounding elements of the original image.
  • Utilize the mask parameter to selectively extend specific areas of the canvas, allowing for more precise control over the extension process.
  • Experiment with different values for the top, bottom, left, and right parameters to achieve the desired canvas size and composition.

LayerUtility: ExtendCanvas V2 Common Errors and Solutions:

Invalid color format

  • Explanation: The color parameter was provided in an incorrect format.
  • Solution: Ensure that the color is specified in a valid format, such as RGB values.

Mask dimension mismatch

  • Explanation: The dimensions of the provided mask do not match the dimensions of the original image.
  • Solution: Make sure that the mask has the same dimensions as the input image to ensure proper application.

Negative extension values

  • Explanation: One or more of the top, bottom, left, or right parameters were given negative values.
  • Solution: Ensure that all extension values are non-negative to avoid errors in the canvas extension process.

LayerUtility: ExtendCanvas V2 Related Nodes

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