LayerStyle

2167
By chflame
Updated 15 days ago
View on GitHub →See Common Issues →

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.

Available Nodes

LayerUtility: ColorImage V2

LayerUtility: ColorImage V2 Node Documentation

Overview

The LayerUtility: ColorImage V2 node is a component within the ComfyUI framework that generates a solid color image based on specified parameters. This node can be particularly useful in visual design pipelines where a placeholder or background color image is needed, or to create customized layer styles within a project.

Inputs

The LayerUtility: ColorImage V2 node accepts the following inputs:

  1. Size:

    • Description: Defines the dimensions of the output image.
    • Options: Includes a default 'custom' setting, with the ability to load additional custom sizes if configured.
  2. Custom Width:

    • Type: Integer
    • Description: Specifies the width of the image in pixels.
    • Default: 512
    • Range: 4 to 99999
  3. Custom Height:

    • Type: Integer
    • Description: Specifies the height of the image in pixels.
    • Default: 512
    • Range: 4 to 99999
  4. Color:

    • Type: String
    • Description: The color of the image in hexadecimal format (e.g., #000000 for black).
    • Default: #000000
  5. Size As (Optional):

    • Type: Generic
    • Description: Allows the dimensions of the image to be derived from another input's size, if provided.

Outputs

The node produces the following output:

  • Image:
    • Type: IMAGE
    • Description: The resulting image painted entirely in the specified color. The size is determined by the chosen input dimensions, either from custom settings or another input source.

Usage in ComfyUI Workflows

The LayerUtility: ColorImage V2 node can be integrated into ComfyUI workflows to:

  • Create uniform color backgrounds for further compositional work or overlays.
  • Generate color masks for various image processing tasks.
  • Serve as a base layer in complex visual compositions where a solid color is required.

This node is part of the 😺dzNodes/LayerUtility category, suggesting its role in providing utility functionality for layer manipulation and management within ComfyUI.

Special Features and Considerations

  • Dynamic Sizing: The node offers flexibility in determining the output size either through manual input or by adapting to the size of another image input.

  • Error Handling: Should there be an invalid size configuration, the node defaults to the custom width and height, alerting users about the potential misconfiguration.

  • Extensibility: The node is designed to extend its capabilities by loading additional custom sizes from configuration files if needed.

The LayerUtility: ColorImage V2 node thus provides a versatile tool for users looking to generate simple color images with specific dimensions, aiding in various graphic design and image processing applications within ComfyUI.