Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

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

Available Nodes

LayerStyle: InnerShadow

LayerStyle: InnerShadow Node Documentation

Overview

The LayerStyle: InnerShadow node is a component of the ComfyUI project that applies an "inner shadow" effect to an image layer. This effect simulates the appearance of a shadow cast inside the boundaries of an image layer, creating depth and emphasizing certain graphical elements in a composite image.

Node Functionality

This node is particularly useful in graphic design and image manipulation tasks where more sophisticated layering effects are required. By applying inner shadows, users can enhance visual elements, adding a sense of realism or artistic creativity.

Inputs

The LayerStyle: InnerShadow node can accept the following inputs:

  • Background Image: This is the base image onto which the layer with the inner shadow will be applied.
  • Layer Image: The specific layer where the inner shadow effect will be incorporated.
  • Invert Mask: A boolean option that, when enabled, inverts the mask controlling where the shadow effect is applied. By default, this is set to True.
  • Blend Mode: This defines the mode of blending used to combine the shadow effect with the layer.
  • Opacity: Controls the transparency level of the shadow. Accepts an integer value between 0 and 100, where 100 is fully opaque.
  • Distance X: Specifies the horizontal offset for the shadow effect. Accepts positive or negative integer values.
  • Distance Y: Specifies the vertical offset for the shadow effect. Similarly, it accepts both positive and negative integer values.
  • Grow: An integer defining how much the mask is expanded before blurring, affecting the shadow's spread.
  • Blur: Sets the amount of blur applied to the shadow, an integer value that indicates how diffused the edges of the shadow are.
  • Shadow Color: Defines the color of the shadow. Typically represented in hexadecimal format (e.g., #000000 for black).
  • Layer Mask (Optional): A mask image that specifically defines where on the layer the shadow effect will be applied.

Outputs

The node produces the following output:

  • Image: The final composite image with the inner shadow applied to the specified layer.

Usage in ComfyUI Workflows

The InnerShadow node is used in workflows where enhancement of depth and focus within an image is required. It can be integrated into a series of image manipulation nodes within ComfyUI to layer visual effects and create complex graphical compositions. Typical use cases include creating stylized images for web design, enhancing icons with subtle shadows, or preparing graphics for print media where layered effects stand out.

Special Features and Considerations

  • Advanced Blending: The node supports various blending modes to cater to diverse artistic and design preferences. This allows users to explore multiple visual styles and nuances.
  • Dynamic Masking: By allowing mask inversion and optional use of layer masks, the node provides flexibility in targeting specific areas for shadow application.
  • Complete Control of Shadow Attributes: Users have comprehensive control over the shadow's position, size, color, and softness, enabling precise tailoring to individual creative projects.
  • Performance: Efficient image processing is achieved through batch processing capabilities, allowing multiple images to be processed simultaneously without loss of performance.

When using this node, it is essential to consider the size and resolution of the images being processed to ensure that the visual effects meet the desired quality and aesthetic standards.