update readme

This commit is contained in:
chflame163
2024-01-28 19:08:43 +08:00
committed by GitHub
parent 785bff9ddf
commit 4504994355
8 changed files with 56 additions and 4 deletions
+30 -1
View File
@@ -22,6 +22,7 @@ Commit [GetImageSize](#GetImageSize) node.
* Commit [ExtendCanvas](#ExtendCanvas) node.
* Commit [ImageBlendAdvance](#ImageBlendAdvance) node. This node allows for the synthesis of background images and layers of different sizes, providing a more free synthesis experience.
Commit [PrintInfo](#PrintInfo) node as a workflow debugging aid.
* Commit [ColorImage](#ColorImage) and [GradientImage](#GradientImage) nodes, Used to generate solid and gradient color images.
* Commit [GradientOverlay](#GradientOverlay) and [ColorOverlay](#ColorOverlay) nodes.
Add invalid mask input judgment and ignore it when invalid mask is input.
* Commit [InnerGlow](#InnerGlow), [InnerShadow](#InnerShadow) and [MotionBlur](#MotionBlur) nodes.
@@ -345,6 +346,29 @@ Node options:
* x: Value of X
* y: Value of Y
### <a id="table1">ColorImage</a>
![image](image/color_image_example.png)
Generate an image of a specified color and size.
![image](image/color_image_node.png)
Node options:
width: Width of the image.
height: Height of the image.
color<sup>4</sup>: Color of the image.
### <a id="table1">GradientImage</a>
![image](image/gradient_image_example.png)
Generate an image with a specified size and color gradient.
![image](image/gradient_image_node.png)
Node options:
width: Width of the image.
height: Height of the image.
angle: Angle of gradient.
start_color<sup>4</sup>: Color of the begging.
end_color<sup>4</sup>: Color of the ending.
### <a id="table1">GetImageSize</a>
![image](image/get_image_size_node.png)
Obtain the width and height of the image.
@@ -369,6 +393,12 @@ Node options:
* angle: The angle of blur.
* blur: The size of blur.
### <a id="table1">GaussianBlur</a>
Make the image gaussian blur
![image](image/gaussian_blur_example.png)
Node options:
* blur: The size of blur.
## Annotation for <a id="table1">notes</a>
<sup>1</sup> The layer_image, layer_mask and the background_image(if have input), These three items must be of the same size.
@@ -395,7 +425,6 @@ LayerMask:
* mask subtract
* mask combine
* mask diffrent
* mask gradient
LayerFilter:
* emboss
+26 -3
View File
@@ -11,10 +11,12 @@ ComfyUI
## 更新说明
* 添加[MaskGradient](#MaskGradient)节点,可使mask产生渐变。
* 添加[GetColorTone](#GetColorTone)节点,可以获取图片的主色或平均色。添加[MaskGrow](#MaskGrow)和[MaskEdgeShrink](#MaskEdgeShrink)节点。
* 添加[MaskBoxDetect](#MaskBoxDetect)节点,可以通过mask自动探测位置并输出到合成节点。添加[XY to Percent](#Percent)节点,将绝对坐标转换为percent坐标。添加[GaussianBlur](#GaussianBlur)节点。添加[GetImageSize](#GetImageSize)节点。
* 添加[ExtendCanvas](#ExtendCanvas)节点。
* 添加[ImageBlendAdvance](#ImageBlendAdvance)节点。这个节点允许合成尺寸不同的背景图和图层,提供了更加自由的合成体验。
添加[PrintInfo](#PrintInfo)节点作为工作流调试辅助工具。
* 添加[ColorImage](#ColorImage)和[GradientImage](#GradientImage)节点,用于生成纯色和渐变色图像。
* 添加[GradientOverlay](#GradientOverlay),[ColorOverlay](#ColorOverlay)节点。增加无效mask输入判断,当输入无效mask时将其忽略。
* 添加[InnerGlow](#InnerGlow), [InnerShadow](#InnerShadow), [MotionBlur](#MotionBlur)节点。
* 所有已完成的节点重新命名,节点分为4组:LayerStyle, LayerMask, LayerUtility, LayerFilter。
@@ -336,6 +338,28 @@ mask
* x: 坐标x值。
* y: 坐标y值。
### <a id="table1">ColorImage</a>
![image](image/color_image_example.png)
生成一张指定颜色和大小的图片。
![image](image/color_image_node.png)
节点选项说明:
width: 图像宽度。
height: 图像高度。
color<sup>4</sup>: 颜色。
### <a id="table1">GradientImage</a>
![image](image/gradient_image_example.png)
生成一张指定大小和指定颜色渐变的图片。
![image](image/gradient_image_node.png)
节点选项说明:
width: 图像宽度。
height: 图像高度。
angle: 渐变角度。
start_color<sup>4</sup>: 开始端颜色。
end_color<sup>4</sup>: 结束端颜色。
### <a id="table1">GetImageSize</a>
![image](image/get_image_size_node.png)
获取图片的宽度和高度。
@@ -369,8 +393,8 @@ mask
## <a id="table1">节点注解</a>
<sup>1</sup> image、mask和background_image(如果有输入)这三项必须是相同的尺寸。
<sup>2</sup> mask不是必须的输入项,默认使用image的alpha通道,如果image输入不包含alpha通道将自动创建整个图像的alpha通道。如果输入mask,原本的alpha通道将被mask覆盖。
<sup>3</sup>: 混合模式包括normal、multply、screen、add、subtract、difference、darker和lighter。
<sup>4</sup>: 颜色使用16进制RGB字符串格式描述,例如 '#FA3D86'。
<sup>3</sup> 混合模式包括normal、multply、screen、add、subtract、difference、darker和lighter。
<sup>4</sup> 颜色使用16进制RGB字符串格式描述,例如 '#FA3D86'。
<sup>5</sup> image和mask这两项必须是相同的尺寸。
## 使用示例
@@ -388,7 +412,6 @@ LayerMask:
* mask subtract
* mask combine
* mask diffrent
* mask gradient
LayerFilter:
* emboss
Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 KiB

After

Width:  |  Height:  |  Size: 505 KiB