ComfyUI  >  Nodes  >  ComfyUI Layer Style >  LayerStyle: Stroke V2

ComfyUI Node: LayerStyle: Stroke V2

Class Name

LayerStyle: Stroke V2

Category
😺dzNodes/LayerStyle
Author
chflame163 (Account age: 445 days)
Extension
ComfyUI Layer Style
Latest Updated
6/24/2024
Github Stars
0.6K

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

LayerStyle: Stroke V2 Description

Enhance images with customizable stroke effects for dynamic and professional-looking outlines.

LayerStyle: Stroke V2:

LayerStyle: Stroke V2 is a powerful node designed to enhance your images by adding customizable stroke effects to specific layers. This node allows you to create visually appealing outlines around your image layers, which can be adjusted in terms of color, width, opacity, and blending mode. The primary goal of this node is to provide you with the flexibility to create dynamic and professional-looking strokes that can be tailored to fit the aesthetic of your artwork. Whether you are looking to highlight certain elements or add a creative touch to your images, LayerStyle: Stroke V2 offers a range of options to achieve the desired effect.

LayerStyle: Stroke V2 Input Parameters:

background_image

This parameter accepts an image that serves as the background layer over which the stroke effect will be applied. The background image is essential as it provides the base onto which the layer image and stroke are composited.

layer_image

This parameter takes an image that will be the primary focus of the stroke effect. The layer image is the element that will be outlined with the stroke, making it stand out against the background image.

invert_mask

This boolean parameter determines whether the mask should be inverted. By default, it is set to True. Inverting the mask can be useful when you want to reverse the areas where the stroke is applied.

blend_mode

This parameter specifies the blending mode used to combine the stroke with the layer image. Different blending modes can create various visual effects, allowing you to achieve the perfect look for your artwork.

opacity

This integer parameter controls the transparency of the stroke effect. It ranges from 0 to 100, with a default value of 100. Adjusting the opacity allows you to make the stroke more or less visible, depending on your needs.

stroke_grow

This integer parameter defines the amount by which the stroke should grow or shrink. It ranges from -999 to 999, with a default value of 0. Positive values will expand the stroke, while negative values will contract it.

stroke_width

This integer parameter sets the width of the stroke. It ranges from 0 to 999, with a default value of 8. The stroke width determines how thick or thin the outline around the layer image will be.

blur

This integer parameter controls the amount of blur applied to the stroke. It ranges from 0 to 100, with a default value of 0. Adding blur can soften the edges of the stroke, creating a more subtle effect.

stroke_color

This string parameter specifies the color of the stroke. The default value is #FF0000 (red). You can change the stroke color to any valid hex color code to match the desired aesthetic of your artwork.

layer_mask

This optional parameter accepts a mask image that defines the areas of the layer image where the stroke should be applied. Using a mask allows for more precise control over the stroke effect.

LayerStyle: Stroke V2 Output Parameters:

image

This output parameter returns the final image with the applied stroke effect. The resulting image combines the background image, the layer image, and the customized stroke, providing a polished and professional look.

LayerStyle: Stroke V2 Usage Tips:

  • Experiment with different blend modes to achieve unique visual effects that complement your artwork.
  • Adjust the opacity to create subtle or bold strokes, depending on the desired emphasis on the layer image.
  • Use the stroke_grow parameter to fine-tune the size of the stroke, ensuring it fits perfectly around the layer image.
  • Apply blur to the stroke to soften its edges and create a more natural look.
  • Change the stroke color to match the overall color scheme of your artwork for a cohesive appearance.

LayerStyle: Stroke V2 Common Errors and Solutions:

Warning: StorkeV2 mask mismatch, dropped!

  • Explanation: This warning occurs when the size of the mask does not match the size of the layer image.
  • Solution: Ensure that the mask image has the same dimensions as the layer image to avoid this warning.

Error: Invalid hex color code

  • Explanation: This error occurs when the stroke_color parameter is set to an invalid hex color code.
  • Solution: Verify that the stroke_color parameter is set to a valid hex color code (e.g., #FF0000 for red).

Error: Invalid blend mode

  • Explanation: This error occurs when an unsupported blend mode is specified.
  • Solution: Ensure that the blend_mode parameter is set to a valid blend mode supported by the node.

LayerStyle: Stroke 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.