2024-01-18 12:44:36 +08:00
2024-01-17 21:05:47 +08:00
2024-01-18 12:44:36 +08:00
2024-01-17 21:05:47 +08:00
2024-01-18 12:44:36 +08:00
2024-01-17 21:05:47 +08:00
2024-01-17 21:05:47 +08:00
2024-01-17 20:57:41 +08:00
2024-01-17 22:35:15 +08:00
2024-01-17 22:37:36 +08:00
2024-01-17 21:05:47 +08:00

ComfyUI Layer Style

A set of nodes for ComfyUI that generate image like Adobe Photoshop's Layer Style.

the Drop Shadow is first completed node, and follow-up work is in progress.

中文说明点这里

Node Description

Drop Shadow:

Generate shadow image

Node options:

  • background_image1: The background image.
  • layer_image1: Layer image for composite.
  • layer_mask1: Mask for layer_image, shadows are generated according to their shape.
  • invert_mask: Whether to reverse the mask.
  • blend_mode: Blending method of shadows, there are normal, multply, screen, add, subtract, difference, darker and lighter.
  • opacity: Opacity of shadow.
  • distance_x: Horizontal offset of shadow.
  • distance_y: Vertical offset of shadow.
  • grow: Shadow expansion amplitude.
  • blur:Shadow blur level.
  • shadow_color: Shadow color, described in hexadecimal RGB format.

1 The layer_image, layer_mask and the background_image, These three items must be of the same size.

Output type:

  • image:Completed image.
  • shadow_mask:Shadow's mask.

Example workflow

image image Some JSON workflow files in the workflow directory, that is example for ComfyUI.

How to install

  • Open the cmd window in the plugin directory of ComfyUI, like "ComfyUI\custom_nodes",typegit clone https://github.com/chflame163/ComfyUI_LayerStyle.git or download the zip file and extracted, copy the resulting folder to ComfyUI\custom_ Nodes\

  • Install dependency packages, open the cmd window in the WordCloud plugin directory like "ComfyUI\custom_ Nodes\ComfyUI_WordCloud" and enter the following command: ..\..\..\python_embeded\python.exe -m pip install -r requirements.txt

  • Restart ComfyUI

S
Description
No description provided
Readme MIT
226 MiB
Languages
Python 93.4%
JavaScript 6.3%
Batchfile 0.3%