Add ImageBlendAdvance and PrintInfo nodes.
Add ImageBlendAdvance node. This node allows for the synthesis of background images and layers of different sizes, providing a more free synthesis experience. Add PrintInfo node as a workflow debugging aid.
This commit is contained in:
@@ -1,34 +1,43 @@
|
||||
# ComfyUI Layer Style
|
||||
A set of nodes for ComfyUI that generate image like Adobe Photoshop's Layer Style.
|
||||
|
||||
The completed nodes are as follows, and further work is in progress.
|
||||

|
||||
|
||||
Nodes are divided into four groups according to their functions: LayerStyle, LayerMask, LayerUtility and LayerFilter.
|
||||
* [LayerStyle](#LayerStyle) nodes provides layer styles that mimic Adobe Photoshop.
|
||||
* [LayerMask](#LayerMask) nodes provides mask assistance tools.
|
||||
* [LayerUtility](#LayerUtility) nodes provides auxiliary nodes related to layer composit tools and workflows.
|
||||
* [LayerFilter](#LayerFilter) nodes provides image effect filters.
|
||||
|
||||
[中文说明点这里](./README_CN.MD)
|
||||
|
||||
## Update
|
||||
* Add GradientOverlay and ColorOverlay nodes. Add invalid mask input judgment and ignore it when invalid mask is input.
|
||||
* Commit InnerGlow, InnerShadow and MotionBlur nodes.
|
||||
* Add [ImageBlendAdvance](#ImageBlendAdvance) node. This node allows for the synthesis of background images and layers of different sizes, providing a more free synthesis experience.
|
||||
Add [PrintInfo](#PrintInfo) node as a workflow debugging aid.
|
||||
* Add [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.
|
||||
* Renaming all completed nodes, the nodes are divided into 4 groups:LayerStyle, LayerMask, LayerUtility, LayerFilter. workflows containing old version nodes need to be manually replaced with new version nodes.
|
||||
* OuterGlow node has undergone significant modifications by adding options for **_brightness_**, **_light_color_**, and **_glow_color_**.
|
||||
* Commit MaskInvert node.
|
||||
* Commit ColorPick node.
|
||||
* Commit Stroke node.
|
||||
* Commit MaskPreview node.
|
||||
* Commit ImageOpacity node.
|
||||
* [OuterGlow](#OuterGlow) node has undergone significant modifications by adding options for **_brightness_**, **_light_color_**, and **_glow_color_**.
|
||||
* Commit [MaskInvert](#MaskInvert) node.
|
||||
* Commit [ColorPick](#ColorPick) node.
|
||||
* Commit [Stroke](#Stroke) node.
|
||||
* Commit [MaskPreview](#MaskPreview) node.
|
||||
* Commit [ImageOpacity](#ImageOpacity) node.
|
||||
* The layer_mask is not a mandatory input now. it is allowed to use layers and masks with different shapes, but the size must be consistent.
|
||||
* Commit ImageBlend node.
|
||||
* Commit OuterGlow node.
|
||||
* Commit DropShadow node.
|
||||
* Commit [ImageBlend](#ImageBlend) node.
|
||||
* Commit [OuterGlow](#OuterGlow) node.
|
||||
* Commit [DropShadow](#DropShadow) node.
|
||||
|
||||
# LayerStyle
|
||||
|
||||
# <a id="table1">LayerStyle</a>
|
||||

|
||||
|
||||
### DropShadow
|
||||
|
||||
### <a id="table1">DropShadow</a>
|
||||
Generate shadow
|
||||

|
||||
|
||||
|
||||
Node options:
|
||||

|
||||
* background_image<sup>1</sup>: The background image.
|
||||
@@ -42,8 +51,10 @@ Node options:
|
||||
* grow: Shadow expansion amplitude.
|
||||
* blur: Shadow blur level.
|
||||
* shadow_color<sup>4</sup>: Shadow color.
|
||||
[note](#Annotation)
|
||||
|
||||
### OuterGlow
|
||||
|
||||
### <a id="table1">OuterGlow</a>
|
||||
Generate outer glow
|
||||

|
||||
|
||||
@@ -60,8 +71,10 @@ Node options:
|
||||
* blur:blur of glow.
|
||||
* light_color<sup>4</sup>: Center part color of glow.
|
||||
* glow_color<sup>4</sup>: Edge part color of glow.
|
||||
[note](#Annotation)
|
||||
|
||||
### InnerShadow
|
||||
|
||||
### <a id="table1">InnerShadow</a>
|
||||
Generate inner shadow
|
||||

|
||||
|
||||
@@ -78,8 +91,10 @@ Node options:
|
||||
* grow: Shadow expansion amplitude.
|
||||
* blur: Shadow blur level.
|
||||
* shadow_color<sup>4</sup>: Shadow color.
|
||||
[note](#Annotation)
|
||||
|
||||
### InnerGlow
|
||||
|
||||
### <a id="table1">InnerGlow</a>
|
||||
Generate inner glow
|
||||

|
||||
|
||||
@@ -96,9 +111,10 @@ Node options:
|
||||
* blur:blur of glow.
|
||||
* light_color<sup>4</sup>: Center part color of glow.
|
||||
* glow_color<sup>4</sup>: Edge part color of glow.
|
||||
[note](#Annotation)
|
||||
|
||||
|
||||
### Stroke
|
||||
### <a id="table1">Stroke</a>
|
||||
Generate a stroke of layer。
|
||||

|
||||
|
||||
@@ -113,8 +129,10 @@ Node options:
|
||||
* stroke_grow: Stroke expansion/contraction amplitude, positive values indicate expansion and negative values indicate contraction.
|
||||
* stroke_width: Stroke width.
|
||||
* stroke_color<sup>4</sup>: Stroke color, described in hexadecimal RGB format.
|
||||
[note](#Annotation)
|
||||
|
||||
### GradientOverlay
|
||||
|
||||
### <a id="table1">GradientOverlay</a>
|
||||
Generate gradient overlay
|
||||

|
||||
|
||||
@@ -130,8 +148,10 @@ Node options:
|
||||
* end_color: Color at the end of the gradient.
|
||||
* end_alpha: Transparency at the end of the gradient.
|
||||
* angle: Gradient rotation angle.
|
||||
[note](#Annotation)
|
||||
|
||||
### ColorOverlay
|
||||
|
||||
### <a id="table1">ColorOverlay</a>
|
||||
Generate color overlay
|
||||

|
||||
|
||||
@@ -144,34 +164,57 @@ Node options:
|
||||
* blend_mode<sup>3</sup>: Blending mode of color.
|
||||
* opacity: Opacity of stroke.
|
||||
* color: Color of overlay.
|
||||
[note](#Annotation)
|
||||
|
||||
|
||||
#### Annotation for LayerStyle nodes:
|
||||
<sup>1</sup> The layer_image, layer_mask and the background_image(if have input), These three items must be of the same size.。
|
||||
|
||||
<sup>2</sup> The mask not a mandatory input item. the alpha channel of the image is used by default. If the image input does not include an alpha channel, the entire image's alpha channel will be automatically created. if have masks input simultaneously, the alpha channel will be overwrite by the mask.
|
||||
|
||||
<sup>3</sup> The blend mode include **_normal, multply, screen, add, subtract, difference, darker_** and **_lighter_**.
|
||||
|
||||
<sup>4</sup> The RGB color described by hexadecimal RGB format, like '#FA3D86'.
|
||||
|
||||
# LayerMask
|
||||
# <a id="table1">LayerMask</a>
|
||||

|
||||
|
||||
### MaskPreview:
|
||||
|
||||
### <a id="table1">MaskPreview</a>
|
||||
Preview the input mask
|
||||

|
||||
|
||||
### MaskInvert:
|
||||
|
||||
### <a id="table1">MaskInvert</a>
|
||||
Invert the mask
|
||||

|
||||
|
||||
|
||||
# LayerUtility
|
||||
# <a id="table1">LayerUtility</a>
|
||||

|
||||
|
||||
### ImageBlend:
|
||||
Composit layer image and background image, multiple blend modes are available for option, and transparency can be set.
|
||||
|
||||
### <a id="table1">ImageBlendAdvance</a>
|
||||
Used for compositing layers, allowing for compositing layer images of different sizes on the background image, and setting positions and transformations. multiple mixing modes are available for selection, and transparency can be set.
|
||||
|
||||
The node provide layer transformation_methods and anti_aliasing options. helps improve the quality of synthesized images.
|
||||
|
||||
The node provides mask output that can be used for subsequent workflows.
|
||||

|
||||
|
||||
Node options:
|
||||

|
||||
* background_image: The background image.
|
||||
* layer_image<sup>5</sup>: Layer image for composite.
|
||||
* layer_mask<sup>2,5</sup>: Mask for layer_image.
|
||||
* invert_mask: Whether to reverse the mask.
|
||||
* blend_mode<sup>3</sup>: Blending mode.
|
||||
* opacity: Opacity of blend.
|
||||
* x_percent: Horizontal position of the layer on the background image, expressed as a percentage, with 0 on the far left and 100 on the far right. It can be less than 0 or more than 100, indicating that some of the layer's content is outside the screen.
|
||||
* y_percent: Vertical position of the layer on the background image, expressed as a percentage, with 0 on the top and 100 on the bottom. For example, setting it to 50 indicates vertical center, 20 indicates upper center, and 80 indicates lower center.
|
||||
* mirror: Mirror flipping. Provide two flipping modes, horizontal flipping and vertical flipping.
|
||||
* scale: Layer magnification, 1.0 represents the original size.
|
||||
* aspect_ratio: Layer aspect ratio. 1.0 is the original ratio, a value greater than this indicates elongation, and a value less than this indicates flattening.
|
||||
* rotate: Layer rotation degree.
|
||||
* Sampling methods for layer enlargement and rotation, including lanczos, bicubic, hamming, bilinear, box and nearest. Different sampling methods can affect the image quality and processing time of the synthesized image.
|
||||
* anti_aliasing: Anti aliasing, ranging from 0 to 16, the larger the value, the less obvious the aliasing. An excessively high value will significantly reduce the processing speed of the node.
|
||||
[note](#Annotation)
|
||||
|
||||
### <a id="table1">ImageBlend</a>
|
||||
A simple node for composit layer image and background image, multiple blend modes are available for option, and transparency can be set.
|
||||

|
||||
|
||||
Node options:
|
||||
@@ -182,18 +225,20 @@ Node options:
|
||||
* invert_mask: Whether to reverse the mask.
|
||||
* blend_mode<sup>3</sup>: Blending mode.
|
||||
* opacity: Opacity of blend.
|
||||
[note](#Annotation)
|
||||
|
||||
### ImageOpacity:
|
||||
### <a id="table1">ImageOpacity</a>
|
||||
Adjust image opacity
|
||||

|
||||
|
||||
Node option:
|
||||
* image<sup>1</sup>: Image input, supporting RGB and RGBA. if is RGB, the alpha channel of the entire image will be automatically added.
|
||||
* mask<sup>1,2</sup> : Mask input.
|
||||
* image<sup>5</sup>: Image input, supporting RGB and RGBA. if is RGB, the alpha channel of the entire image will be automatically added.
|
||||
* mask<sup>2,5</sup> : Mask input.
|
||||
* invert_mask: Whether to reverse the mask.
|
||||
* opacity: Opacity of image.
|
||||
[note](#Annotation)
|
||||
|
||||
### ColorPicker:
|
||||
### <a id="table1">ColorPicker</a>
|
||||
Modify web extensions from [mtb nodes](https://github.com/melMass/comfy_mtb). Select colors on the color palette and output RGB values.
|
||||

|
||||
|
||||
@@ -203,10 +248,18 @@ Node options:
|
||||
Output Type:
|
||||
* string
|
||||
|
||||
# LayerFilter
|
||||
### <a id="table1">PrintInfo</a>
|
||||

|
||||
Used to provide assistance for workflow debugging. When running, the properties of any object connected to this node will be printed to the console.
|
||||
|
||||
This node allows any type of input.
|
||||
|
||||
|
||||
# <a id="table1">LayerFilter</a>
|
||||

|
||||
|
||||
### MotionBlur:
|
||||
|
||||
### <a id="table1">MotionBlur</a>
|
||||
Make the image motion blur
|
||||

|
||||
|
||||
@@ -214,13 +267,24 @@ Node options:
|
||||
* angle: The angle of blur.
|
||||
* blur: The size of blur.
|
||||
|
||||
|
||||
#### <a id="table1">Annotation</a> for nodes
|
||||
<sup>1</sup> The layer_image, layer_mask and the background_image(if have input), These three items must be of the same size.
|
||||
|
||||
<sup>2</sup> The mask not a mandatory input item. the alpha channel of the image is used by default. If the image input does not include an alpha channel, the entire image's alpha channel will be automatically created. if have masks input simultaneously, the alpha channel will be overwrite by the mask.
|
||||
|
||||
<sup>3</sup> The blend mode include **_normal, multply, screen, add, subtract, difference, darker_** and **_lighter_**.
|
||||
|
||||
<sup>4</sup> The RGB color described by hexadecimal RGB format, like '#FA3D86'.
|
||||
|
||||
<sup>5</sup> The layer_image and layer_mask must be of the same size.
|
||||
|
||||
## Example workflow
|
||||
image Some JSON workflow files in the workflow directory, that is example for ComfyUI.
|
||||
|
||||
## The following tasks are in the planned list
|
||||
|
||||
LayerUtility:
|
||||
* imageblend advance
|
||||
* color image
|
||||
* gradient image
|
||||
* image channel split
|
||||
|
||||
+104
-41
@@ -1,27 +1,36 @@
|
||||
# ComfyUI Layer Style
|
||||
ComfyUI插件,通过一组节点实现仿照Adobe Photoshop的图层样式。
|
||||
|
||||
已完成的节点如下,后续工作进行中。
|
||||

|
||||
节点按照功能分为4组:LayerStyle, LayerMask, LayerUtility和LayerFilter。
|
||||
* [LayerStyle](#LayerStyle)节点组提供仿照Adobe Photoshop的图层样式。
|
||||
* [LayerMask](#LayerMask)节点组提供Mask辅助工具。
|
||||
* [LayerUtility](#LayerUtility)节点组提供图层合成工具和工作流相关的辅助节点。
|
||||
* [LayerFilter](#LayerFilter)节点组提供图像效果滤镜。
|
||||
|
||||
## 更新说明:
|
||||
* 添加GradientOverlay,ColorOverlay节点。增加无效mask输入判断,当输入无效mask时将其忽略。
|
||||
* 添加InnerGlow, InnerShadow, MotionBlur节点。
|
||||
* 所有已完成的节点重新命名,节点分为4组:LayerStyle, LayerMask, LayerUtility, LayerFilter。因为重新命名,包含旧版节点的工作流需手动替换新版节点。
|
||||
* OuterGlow节点修改,增加亮度、灯光颜色、辉光颜色选项。
|
||||
* 添加MaskInvert节点。
|
||||
* 添加Stroke节点。
|
||||
* 添加MaskPreview节点。
|
||||
* 添加ImageOpacity节点。
|
||||
## 更新说明
|
||||
* 添加[ImageBlendAdvance](#ImageBlendAdvance)节点。这个节点允许合成尺寸不同的背景图和图层,提供了更加自由的合成体验。
|
||||
添加[PrintInfo](#PrintInfo)节点作为工作流调试辅助工具。
|
||||
* 添加[GradientOverlay](#GradientOverlay),[ColorOverlay](#ColorOverlay)节点。增加无效mask输入判断,当输入无效mask时将其忽略。
|
||||
* 添加[InnerGlow](#InnerGlow), [InnerShadow](#InnerShadow), [MotionBlur](#MotionBlur)节点。
|
||||
* 所有已完成的节点重新命名,节点分为4组:LayerStyle, LayerMask, LayerUtility, LayerFilter。
|
||||
因为重新命名,包含旧版节点的工作流需手动替换新版节点。
|
||||
* [OuterGlow](#OuterGlow)节点修改,增加亮度、灯光颜色、辉光颜色选项。
|
||||
* 添加[MaskInvert](#MaskInvert)节点。
|
||||
* 添加[Stroke](#Stroke)节点。
|
||||
* 添加[MaskPreview](#MaskPreview)节点。
|
||||
* 添加[ImageOpacity](#ImageOpacity)节点。
|
||||
* layer_mask修改为非必选, 默认使用layer_image的alpha通道,允许通过输入mask改变之,但是尺寸必须一致。
|
||||
* 添加ImageBlend节点。
|
||||
* 添加OuterGlow节点。
|
||||
* 首个节点DropShadow提交。
|
||||
* 添加[ImageBlend](#ImageBlend)节点。
|
||||
* 添加[OuterGlow](#OuterGlow)节点。
|
||||
* 首个节点[DropShadow](#DropShadow)提交。
|
||||
|
||||
# LayerStyle
|
||||
|
||||
# <a id="table1">LayerStyle</a>
|
||||

|
||||
|
||||
### DropShadow
|
||||
|
||||
### <a id="table1">DropShadow</a>
|
||||
生成阴影。
|
||||

|
||||
|
||||
@@ -38,8 +47,10 @@ ComfyUI
|
||||
* grow: 阴影扩张幅度。
|
||||
* blur:阴影模糊程度。
|
||||
* shadow_color<sup>4</sup>: 阴影颜色。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
### OuterGlow
|
||||
|
||||
### <a id="table1">OuterGlow</a>
|
||||
生成外发光。
|
||||

|
||||
|
||||
@@ -56,8 +67,10 @@ ComfyUI
|
||||
* blur:发光模糊程度。
|
||||
* light_color<sup>4</sup>: 发光中心颜色。
|
||||
* glow_colo<sup>4</sup>: 辉光外围颜色。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
### InnerShadow
|
||||
|
||||
### <a id="table1">InnerShadow</a>
|
||||
生成内阴影。
|
||||

|
||||
|
||||
@@ -74,8 +87,10 @@ ComfyUI
|
||||
* grow: 阴影扩张幅度。
|
||||
* blur:阴影模糊程度。
|
||||
* shadow_color<sup>4</sup>: 阴影颜色。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
### InnerGlow
|
||||
|
||||
### <a id="table1">InnerGlow</a>
|
||||
生成内发光。
|
||||

|
||||
|
||||
@@ -92,8 +107,10 @@ ComfyUI
|
||||
* blur:发光模糊程度。
|
||||
* light_color<sup>4</sup>: 发光中心颜色。
|
||||
* glow_colo<sup>4</sup>: 辉光外围颜色。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
### Stroke
|
||||
|
||||
### <a id="table1">Stroke</a>
|
||||
生成描边。
|
||||

|
||||
|
||||
@@ -108,8 +125,10 @@ ComfyUI
|
||||
* stroke_grow: 描边扩张/收缩幅度,正值是扩张,负值是收缩。
|
||||
* stroke_width: 描边宽度。
|
||||
* stroke_color<sup>4</sup>: 描边颜色。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
### GradientOverlay
|
||||
|
||||
### <a id="table1">GradientOverlay</a>
|
||||
渐变覆盖
|
||||

|
||||
|
||||
@@ -126,8 +145,10 @@ ComfyUI
|
||||
* end_color: 渐变结束端的颜色。
|
||||
* end_alpha: 渐变结束端的透明度。
|
||||
* angle: 渐变旋转角度。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
### ColorOverlay
|
||||
|
||||
### <a id="table1">ColorOverlay</a>
|
||||
颜色覆盖
|
||||

|
||||
|
||||
@@ -140,30 +161,56 @@ ComfyUI
|
||||
* blend_mode<sup>3</sup>: 描边的混合模式。
|
||||
* opacity: 不透明度。
|
||||
* color: 覆盖的颜色。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
|
||||
#### 节点选项注解:
|
||||
<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'。
|
||||
|
||||
# LayerMask
|
||||
# <a id="table1">LayerMask</a>
|
||||

|
||||
|
||||
### MaskPreview:
|
||||
|
||||
### <a id="table1">MaskPreview</a>
|
||||
预览mask
|
||||

|
||||
|
||||
### MaskInvert:
|
||||
|
||||
### <a id="table1">MaskInvert</a>
|
||||
mask反转
|
||||

|
||||
|
||||
# LayerUtility
|
||||
|
||||
# <a id="table1">LayerUtility</a>
|
||||

|
||||
|
||||
### ImageBlend:
|
||||
用于合成图层,提供多种混合模式供选择,可设置透明度。
|
||||
|
||||
### <a id="table1">ImageBlendAdvance</a>
|
||||
用于合成图层,允许在背景图片上合成与之不同尺寸的图层图片,并且设置位置和变换。提供多种混合模式供选择,可设置透明度。
|
||||
|
||||
节点提供了图层变换方法和抗锯齿选项。有助于提高合成画质。
|
||||
|
||||
节点提供了mask输出可用于后续工作流。
|
||||

|
||||
|
||||
节点选项说明:
|
||||

|
||||
* background_image: 背景图像。
|
||||
* layer_image<sup>5</sup>: 用于合成的层图像。
|
||||
* layer_mask<sup>2,5</sup>: 层图像的遮罩。
|
||||
* invert_mask: 是否反转遮罩。
|
||||
* blend_mode<sup>3</sup>: 图层混合模式。
|
||||
* opacity: 不透明度。
|
||||
* x_percent: 图层在背景图上的水平位置,用百分比表示,最左侧是0,最右侧是100,可以是小于0或者超过100,那表示图层有部分内容在画面之外。
|
||||
* y_percent: 图层在背景图上的垂直位置,用百分比表示,最上侧是0,最下侧是100。例如设置为50表示垂直居中,20是偏上,80则是偏下。
|
||||
* mirror: 镜像翻转。提供2种翻转模式, 水平翻转和垂直翻转。
|
||||
* scale: 图层放大倍数,1.0 表示原大。
|
||||
* aspect_ratio: 图层长宽比。1.0 是原始比例,大于此值表示拉长,小于此值表示压扁。
|
||||
* rotate: 图层旋转度数。
|
||||
* transform_method: 用于图层放大和旋转的采样方法,包括lanczos、bicubic、hamming、bilinear、box和nearest。不同的采样方法会影响合成的画质和画面处理时间。
|
||||
* anti_aliasing: 抗锯齿,范围从0-16,数值越大,锯齿越不明显。过高的数值将显著降低节点的处理速度。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
### <a id="table1">ImageBlend</a>
|
||||
一个用于合成图层的简单节点,提供多种混合模式供选择,可设置透明度。
|
||||

|
||||
|
||||
节点选项说明:
|
||||
@@ -174,18 +221,20 @@ mask
|
||||
* invert_mask: 是否反转遮罩。
|
||||
* blend_mode<sup>3</sup>: 图层混合模式。
|
||||
* opacity: 不透明度。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
### ImageOpacity:
|
||||
### <a id="table1">ImageOpacity</a>
|
||||
调整图像不透明度。
|
||||

|
||||
|
||||
节点选项说明:
|
||||
* image: 图像输入,支持RGB和RGBA输入。
|
||||
* mask: 遮罩输入。
|
||||
* image<sup>5</sup>: 图像输入,支持RGB和RGBA输入。
|
||||
* mask<sup>2,5</sup>: 遮罩输入。
|
||||
* invert_mask: 是否反转遮罩。
|
||||
* opacity: 不透明度。
|
||||
[节点注解](#节点注解)
|
||||
|
||||
### ColorPicker:
|
||||
### <a id="table1">ColorPicker</a>
|
||||
在色板上选取颜色并输出。
|
||||
改自[mtb nodes](https://github.com/melMass/comfy_mtb)的web extensions。
|
||||

|
||||
@@ -196,10 +245,19 @@ mask
|
||||
输出:
|
||||
* string
|
||||
|
||||
# LayerFilter
|
||||
|
||||
### <a id="table1">PrintInfo</a>
|
||||

|
||||
用于给工作流调试提供辅助。当运行时,任何接上这个节点的对象的属性将被打印到控制台。
|
||||
|
||||
这个节点允许任意类型的输入。
|
||||
|
||||
|
||||
# <a id="table1">LayerFilter</a>
|
||||

|
||||
|
||||
### MotionBlur:
|
||||
|
||||
### <a id="table1">MotionBlur</a>
|
||||
运动模糊。
|
||||

|
||||
|
||||
@@ -207,15 +265,20 @@ mask
|
||||
* angle: 模糊角度。
|
||||
* blur: 模糊大小。
|
||||
|
||||
#### <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>5</sup> image和mask这两项必须是相同的尺寸。
|
||||
|
||||
## 使用示例:
|
||||
## 使用示例
|
||||
|
||||
在workflow目录下有json格式的工作流示例文件。
|
||||
|
||||
## 以下工作在计划列表中
|
||||
|
||||
LayerUtility:
|
||||
* imageblend advance
|
||||
* color image
|
||||
* gradient image
|
||||
* image channel split
|
||||
@@ -237,7 +300,7 @@ LayerFilter:
|
||||
* contour
|
||||
* findedge
|
||||
|
||||
## 安装方法:
|
||||
## 安装方法
|
||||
|
||||
* 在CompyUI插件目录(例如“CompyUI\custom_nodes\”)中打开cmd窗口,键入```git clone https://github.com/chflame163/ComfyUI_LayerStyle.git```安装。或者下载解压zip文件,将得到的文件夹复制到 ComfyUI\custom_nodes\
|
||||
* 安装依赖包,在资源管理器ComfyUI\custom_nodes\ComfyUI_WordCloud 插件目录位置打开cmd窗口,输入以下命令:
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 229 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 376 KiB After Width: | Height: | Size: 2.6 MiB |
@@ -0,0 +1,111 @@
|
||||
import copy
|
||||
from .imagefunc import *
|
||||
|
||||
class ImageBlendAdvance:
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
chop_mode = ['normal','multply','screen','add','subtract','difference','darker','lighter']
|
||||
mirror_mode = ['None', 'horizontal', 'vertical']
|
||||
method_mode = ['lanczos', 'bicubic', 'hamming', 'bilinear', 'box', 'nearest']
|
||||
return {
|
||||
"required": {
|
||||
"background_image": ("IMAGE", ), #
|
||||
"layer_image": ("IMAGE",), #
|
||||
"invert_mask": ("BOOLEAN", {"default": True}), # 反转mask
|
||||
"blend_mode": (chop_mode,), # 混合模式
|
||||
"opacity": ("INT", {"default": 100, "min": 0, "max": 100, "step": 1}), # 透明度
|
||||
"x_percent": ("FLOAT", {"default": 50, "min": -999, "max": 999, "step": 0.01}),
|
||||
"y_percent": ("FLOAT", {"default": 50, "min": -999, "max": 999, "step": 0.01}),
|
||||
"mirror": (mirror_mode,), # 镜像翻转
|
||||
"scale": ("FLOAT", {"default": 1, "min": 0.01, "max": 100, "step": 0.01}),
|
||||
"aspect_ratio": ("FLOAT", {"default": 1, "min": 0.01, "max": 100, "step": 0.01}),
|
||||
"rotate": ("FLOAT", {"default": 0, "min": -999999, "max": 999999, "step": 0.01}),
|
||||
"transform_method": (method_mode,),
|
||||
"anti_aliasing": ("INT", {"default": 0, "min": 0, "max": 16, "step": 0.01}),
|
||||
},
|
||||
"optional": {
|
||||
"layer_mask": ("MASK",), #
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("IMAGE", "MASK")
|
||||
RETURN_NAMES = ("image", "mask")
|
||||
FUNCTION = 'image_blend_advance'
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def image_blend_advance(self, background_image, layer_image,
|
||||
invert_mask, blend_mode, opacity,
|
||||
x_percent, y_percent,
|
||||
mirror, scale, aspect_ratio, rotate,
|
||||
transform_method, anti_aliasing,
|
||||
layer_mask=None
|
||||
):
|
||||
|
||||
# preprocess
|
||||
_canvas = tensor2pil(background_image).convert('RGB')
|
||||
_layer = tensor2pil(layer_image)
|
||||
if _layer.mode == 'RGBA':
|
||||
_mask = tensor2pil(layer_image).convert('RGBA').split()[-1]
|
||||
else:
|
||||
_mask = Image.new('L', _layer.size, 'white')
|
||||
_layer = _layer.convert('RGB')
|
||||
if layer_mask is not None:
|
||||
if invert_mask:
|
||||
layer_mask = 1 - layer_mask
|
||||
_mask = mask2image(layer_mask).convert('L')
|
||||
if _mask.size != _layer.size:
|
||||
_mask = Image.new('L', _layer.size, 'white')
|
||||
log('Warning: mask mismatch, droped!')
|
||||
|
||||
orig_layer_width = _layer.width
|
||||
orig_layer_height = _layer.height
|
||||
_mask = _mask.convert("RGB")
|
||||
|
||||
target_layer_width = int(orig_layer_width * scale)
|
||||
target_layer_height = int(orig_layer_height * scale * aspect_ratio)
|
||||
|
||||
# mirror
|
||||
if mirror == 'horizontal':
|
||||
_layer = _layer.transpose(Image.FLIP_LEFT_RIGHT)
|
||||
_mask = _mask.transpose(Image.FLIP_LEFT_RIGHT)
|
||||
elif mirror == 'vertical':
|
||||
_layer = _layer.transpose(Image.FLIP_TOP_BOTTOM)
|
||||
_mask = _mask.transpose(Image.FLIP_TOP_BOTTOM)
|
||||
|
||||
# scale
|
||||
_layer = _layer.resize((target_layer_width, target_layer_height))
|
||||
_mask = _mask.resize((target_layer_width, target_layer_height))
|
||||
# rotate
|
||||
_layer, _mask, _ = image_rotate_extend_with_alpha(_layer, rotate, _mask, transform_method, anti_aliasing)
|
||||
|
||||
# 处理位置
|
||||
x = int(_canvas.width * x_percent / 100 - _layer.width / 2)
|
||||
y = int(_canvas.height * y_percent / 100 - _layer.height / 2)
|
||||
|
||||
# composit layer
|
||||
_comp = copy.copy(_canvas)
|
||||
_compmask = Image.new("RGB", _comp.size, color='black')
|
||||
_comp.paste(_layer, (x, y))
|
||||
_compmask.paste(_mask, (x, y))
|
||||
_compmask = _compmask.convert('L')
|
||||
_comp = chop_image(_canvas, _comp, blend_mode, opacity)
|
||||
|
||||
# composition background
|
||||
_canvas.paste(_comp, mask=_compmask)
|
||||
ret_image = _canvas
|
||||
ret_mask = image2mask(_compmask)
|
||||
log('ImageBlendAdvance Processed.')
|
||||
return (pil2tensor(ret_image), ret_mask,)
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"LayerUtility: ImageBlendAdvance": ImageBlendAdvance
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LayerUtility: ImageBlendAdvance": "LayerUtility: ImageBlendAdvance"
|
||||
}
|
||||
+27
-7
@@ -119,7 +119,7 @@ def motion_blur(image:Image, angle:int, blur:int) -> Image:
|
||||
ret_image = cv22pil(blurred)
|
||||
return ret_image
|
||||
|
||||
def __rotate_expand(image:Image, angle:float, SSAA:int=0) -> Image:
|
||||
def __rotate_expand(image:Image, angle:float, SSAA:int=0, method:str="lanczos") -> Image:
|
||||
images = pil2tensor(image)
|
||||
expand = "true"
|
||||
height, width = images[0, :, :, 0].shape
|
||||
@@ -127,6 +127,21 @@ def __rotate_expand(image:Image, angle:float, SSAA:int=0) -> Image:
|
||||
def rotate_tensor(tensor):
|
||||
resize_sampler = Image.LANCZOS
|
||||
rotate_sampler = Image.BICUBIC
|
||||
if method == "bicubic":
|
||||
resize_sampler = Image.BICUBIC
|
||||
rotate_sampler = Image.BICUBIC
|
||||
elif method == "hamming":
|
||||
resize_sampler = Image.HAMMING
|
||||
rotate_sampler = Image.BILINEAR
|
||||
elif method == "bilinear":
|
||||
resize_sampler = Image.BILINEAR
|
||||
rotate_sampler = Image.BILINEAR
|
||||
elif method == "box":
|
||||
resize_sampler = Image.BOX
|
||||
rotate_sampler = Image.NEAREST
|
||||
elif method == "nearest":
|
||||
resize_sampler = Image.NEAREST
|
||||
rotate_sampler = Image.NEAREST
|
||||
if SSAA > 1:
|
||||
img = tensor.tensor_to_image()
|
||||
img_us_scaled = img.resize((width * SSAA, height * SSAA), resize_sampler)
|
||||
@@ -145,12 +160,13 @@ def __rotate_expand(image:Image, angle:float, SSAA:int=0) -> Image:
|
||||
rotated_tensor = torch.stack([rotate_tensor(images[i]) for i in range(len(images))])
|
||||
return tensor2pil(rotated_tensor).convert('RGB')
|
||||
|
||||
def image_rotate_extend_with_alpha(image:Image, alpha:Image, angle:float, SSAA:int=0) -> tuple:
|
||||
_image = __rotate_expand(image.convert('RGB'), angle, SSAA)
|
||||
_alpha = __rotate_expand(alpha.convert('RGB'), angle, SSAA)
|
||||
R, G, B = _image.split()
|
||||
A = _alpha.convert('L')
|
||||
ret_image = Image.merge('RGBA', (R, G, B, A))
|
||||
def image_rotate_extend_with_alpha(image:Image, angle:float, alpha:Image=None, method:str="lanczos", SSAA:int=0) -> tuple:
|
||||
_image = __rotate_expand(image.convert('RGB'), angle, SSAA, method)
|
||||
if angle is not None:
|
||||
_alpha = __rotate_expand(alpha.convert('RGB'), angle, SSAA, method)
|
||||
ret_image = RGB2RGBA(_image, _alpha)
|
||||
else:
|
||||
ret_image = _image
|
||||
return (_image, _alpha, ret_image)
|
||||
|
||||
|
||||
@@ -219,6 +235,10 @@ def mask_invert(mask:torch.Tensor) -> torch.Tensor:
|
||||
def subtract_mask(masks_a:torch.Tensor, masks_b:torch.Tensor) -> torch.Tensor:
|
||||
return torch.clamp(masks_a - masks_b, 0, 255)
|
||||
|
||||
def RGB2RGBA(image:Image, mask:Image) -> Image:
|
||||
(R, G, B) = image.convert('RGB').split()
|
||||
return Image.merge('RGBA', (R, G, B, mask.convert('L')))
|
||||
|
||||
'''Color Functions'''
|
||||
|
||||
def RGB_to_Hex(RGB) -> str:
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
import json
|
||||
import torch
|
||||
from .imagefunc import tensor2pil, log
|
||||
|
||||
class AnyType(str):
|
||||
"""A special class that is always equal in not equal comparisons. Credit to pythongosssss"""
|
||||
def __ne__(self, __value: object) -> bool:
|
||||
return False
|
||||
|
||||
any = AnyType("*")
|
||||
|
||||
class PrintInfo:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls): # pylint: disable = invalid-name, missing-function-docstring
|
||||
return {
|
||||
"required": {
|
||||
"anything": (any, {}),
|
||||
},
|
||||
}
|
||||
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
RETURN_TYPES = ()
|
||||
FUNCTION = "print_info"
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def print_info(self, anything=None):
|
||||
value = 'PrintInfo:\nInput type is: ' + str(type(anything)) + '\n'
|
||||
if isinstance(anything, torch.Tensor):
|
||||
image = tensor2pil(anything)
|
||||
value = value + 'Image.size=' + str(image.size) + ', Image.mode=' + str(image.mode) + '\n'
|
||||
if anything is not None:
|
||||
try:
|
||||
value = value + json.dumps(anything) + "\n"
|
||||
except Exception:
|
||||
try:
|
||||
value = value + str(anything) + "\n"
|
||||
except Exception:
|
||||
value = 'source exists, but could not be serialized.'
|
||||
log(value)
|
||||
return {"ui": {"text": (value,)}}
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"LayerUtility: PrintInfo": PrintInfo
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LayerUtility: PrintInfo": "LayerUtility: PrintInfo"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 387 KiB |
@@ -0,0 +1,252 @@
|
||||
{
|
||||
"last_node_id": 28,
|
||||
"last_link_id": 30,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 9,
|
||||
"type": "LoadImage",
|
||||
"pos": [
|
||||
736,
|
||||
-176
|
||||
],
|
||||
"size": {
|
||||
"0": 350.14056396484375,
|
||||
"1": 314
|
||||
},
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
11
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "MASK",
|
||||
"type": "MASK",
|
||||
"links": [],
|
||||
"shape": 3,
|
||||
"slot_index": 1
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LoadImage"
|
||||
},
|
||||
"widgets_values": [
|
||||
"3840x2160car.jpg",
|
||||
"image"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": "LoadImage",
|
||||
"pos": [
|
||||
810,
|
||||
223
|
||||
],
|
||||
"size": {
|
||||
"0": 261.82659912109375,
|
||||
"1": 314
|
||||
},
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
12
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "MASK",
|
||||
"type": "MASK",
|
||||
"links": [
|
||||
13
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 1
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LoadImage"
|
||||
},
|
||||
"widgets_values": [
|
||||
"512x512 (16).png",
|
||||
"image"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"type": "LayerUtility: ImageBlendAdvance",
|
||||
"pos": [
|
||||
1150,
|
||||
57
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 338
|
||||
},
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "background_image",
|
||||
"type": "IMAGE",
|
||||
"link": 11
|
||||
},
|
||||
{
|
||||
"name": "layer_image",
|
||||
"type": "IMAGE",
|
||||
"link": 12
|
||||
},
|
||||
{
|
||||
"name": "layer_mask",
|
||||
"type": "MASK",
|
||||
"link": 13
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
28
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "mask",
|
||||
"type": "MASK",
|
||||
"links": [
|
||||
30
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 1
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LayerUtility: ImageBlendAdvance"
|
||||
},
|
||||
"widgets_values": [
|
||||
true,
|
||||
"normal",
|
||||
100,
|
||||
73.67,
|
||||
27.7,
|
||||
"horizontal",
|
||||
2,
|
||||
1,
|
||||
25.28,
|
||||
"lanczos",
|
||||
2
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 23,
|
||||
"type": "PreviewImage",
|
||||
"pos": [
|
||||
1559,
|
||||
-239
|
||||
],
|
||||
"size": [
|
||||
643.1714141845705,
|
||||
387.9265393676759
|
||||
],
|
||||
"flags": {},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 28
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "PreviewImage"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"type": "LayerMask: MaskPreview",
|
||||
"pos": [
|
||||
1553,
|
||||
198
|
||||
],
|
||||
"size": [
|
||||
646.8334141845708,
|
||||
388.80453936767594
|
||||
],
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "mask",
|
||||
"type": "MASK",
|
||||
"link": 30
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LayerMask: MaskPreview"
|
||||
}
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
11,
|
||||
9,
|
||||
0,
|
||||
19,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
12,
|
||||
8,
|
||||
0,
|
||||
19,
|
||||
1,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
13,
|
||||
8,
|
||||
1,
|
||||
19,
|
||||
2,
|
||||
"MASK"
|
||||
],
|
||||
[
|
||||
28,
|
||||
19,
|
||||
0,
|
||||
23,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
30,
|
||||
19,
|
||||
1,
|
||||
28,
|
||||
0,
|
||||
"MASK"
|
||||
]
|
||||
],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -0,0 +1,416 @@
|
||||
{
|
||||
"last_node_id": 25,
|
||||
"last_link_id": 28,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 23,
|
||||
"type": "PreviewImage",
|
||||
"pos": [
|
||||
1890,
|
||||
-239
|
||||
],
|
||||
"size": {
|
||||
"0": 753.9779663085938,
|
||||
"1": 485.2859802246094
|
||||
},
|
||||
"flags": {},
|
||||
"order": 5,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 22
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "PreviewImage"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 25,
|
||||
"type": "PreviewImage",
|
||||
"pos": [
|
||||
1888,
|
||||
304
|
||||
],
|
||||
"size": {
|
||||
"0": 757.4659423828125,
|
||||
"1": 480.2757873535156
|
||||
},
|
||||
"flags": {},
|
||||
"order": 6,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 26
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "PreviewImage"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 24,
|
||||
"type": "LayerStyle: OuterGlow",
|
||||
"pos": [
|
||||
1514,
|
||||
307
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 266
|
||||
},
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "background_image",
|
||||
"type": "IMAGE",
|
||||
"link": 23
|
||||
},
|
||||
{
|
||||
"name": "layer_image",
|
||||
"type": "IMAGE",
|
||||
"link": 25
|
||||
},
|
||||
{
|
||||
"name": "layer_mask",
|
||||
"type": "MASK",
|
||||
"link": 28
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
26
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LayerStyle: OuterGlow"
|
||||
},
|
||||
"widgets_values": [
|
||||
false,
|
||||
"screen",
|
||||
100,
|
||||
5,
|
||||
100,
|
||||
35,
|
||||
"#FFBF30",
|
||||
"#FE0000"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 22,
|
||||
"type": "LayerStyle: DropShadow",
|
||||
"pos": [
|
||||
1514,
|
||||
-73
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 266
|
||||
},
|
||||
"flags": {},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "background_image",
|
||||
"type": "IMAGE",
|
||||
"link": 19
|
||||
},
|
||||
{
|
||||
"name": "layer_image",
|
||||
"type": "IMAGE",
|
||||
"link": 20
|
||||
},
|
||||
{
|
||||
"name": "layer_mask",
|
||||
"type": "MASK",
|
||||
"link": 27
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
22
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LayerStyle: DropShadow"
|
||||
},
|
||||
"widgets_values": [
|
||||
false,
|
||||
"normal",
|
||||
50,
|
||||
80,
|
||||
80,
|
||||
40,
|
||||
40,
|
||||
"#000000"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": "LoadImage",
|
||||
"pos": [
|
||||
820,
|
||||
191
|
||||
],
|
||||
"size": {
|
||||
"0": 261.82659912109375,
|
||||
"1": 314
|
||||
},
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
12
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "MASK",
|
||||
"type": "MASK",
|
||||
"links": [
|
||||
13
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 1
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LoadImage"
|
||||
},
|
||||
"widgets_values": [
|
||||
"512x512 (16).png",
|
||||
"image"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": "LoadImage",
|
||||
"pos": [
|
||||
736,
|
||||
-176
|
||||
],
|
||||
"size": {
|
||||
"0": 350.14056396484375,
|
||||
"1": 314
|
||||
},
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
11
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "MASK",
|
||||
"type": "MASK",
|
||||
"links": [],
|
||||
"shape": 3,
|
||||
"slot_index": 1
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LoadImage"
|
||||
},
|
||||
"widgets_values": [
|
||||
"3840x2160car.jpg",
|
||||
"image"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"type": "LayerUtility: ImageBlendAdvance",
|
||||
"pos": [
|
||||
1131,
|
||||
126
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 338
|
||||
},
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "background_image",
|
||||
"type": "IMAGE",
|
||||
"link": 11
|
||||
},
|
||||
{
|
||||
"name": "layer_image",
|
||||
"type": "IMAGE",
|
||||
"link": 12
|
||||
},
|
||||
{
|
||||
"name": "layer_mask",
|
||||
"type": "MASK",
|
||||
"link": 13
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
19,
|
||||
20,
|
||||
23,
|
||||
25
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "mask",
|
||||
"type": "MASK",
|
||||
"links": [
|
||||
27,
|
||||
28
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 1
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LayerUtility: ImageBlendAdvance"
|
||||
},
|
||||
"widgets_values": [
|
||||
true,
|
||||
"normal",
|
||||
100,
|
||||
73.67,
|
||||
27.7,
|
||||
"horizontal",
|
||||
2,
|
||||
1,
|
||||
30,
|
||||
"lanczos",
|
||||
2
|
||||
]
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
11,
|
||||
9,
|
||||
0,
|
||||
19,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
12,
|
||||
8,
|
||||
0,
|
||||
19,
|
||||
1,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
13,
|
||||
8,
|
||||
1,
|
||||
19,
|
||||
2,
|
||||
"MASK"
|
||||
],
|
||||
[
|
||||
19,
|
||||
19,
|
||||
0,
|
||||
22,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
20,
|
||||
19,
|
||||
0,
|
||||
22,
|
||||
1,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
22,
|
||||
22,
|
||||
0,
|
||||
23,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
23,
|
||||
19,
|
||||
0,
|
||||
24,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
25,
|
||||
19,
|
||||
0,
|
||||
24,
|
||||
1,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
26,
|
||||
24,
|
||||
0,
|
||||
25,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
27,
|
||||
19,
|
||||
1,
|
||||
22,
|
||||
2,
|
||||
"MASK"
|
||||
],
|
||||
[
|
||||
28,
|
||||
19,
|
||||
1,
|
||||
24,
|
||||
2,
|
||||
"MASK"
|
||||
]
|
||||
],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {},
|
||||
"version": 0.4
|
||||
}
|
||||
Reference in New Issue
Block a user