Files
chflame163-ComfyUI_LayerStyle/workflow/image_mask_scale_as_example.json
T

313 lines
5.1 KiB
JSON

{
"last_node_id": 65,
"last_link_id": 146,
"nodes": [
{
"id": 42,
"type": "LoadImage",
"pos": [
133,
364
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
137
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"D04QPvc (26).jpg",
"image"
]
},
{
"id": 59,
"type": "LayerMask: MaskPreview",
"pos": [
1543,
510
],
"size": {
"0": 359.6678771972656,
"1": 408.945556640625
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 142
}
],
"properties": {
"Node name for S&R": "LayerMask: MaskPreview"
}
},
{
"id": 16,
"type": "Image Remove Background Rembg (mtb)",
"pos": [
485,
735
],
"size": {
"0": 294,
"1": 230
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 22
}
],
"outputs": [
{
"name": "Image (rgba)",
"type": "IMAGE",
"links": null,
"shape": 3
},
{
"name": "Mask",
"type": "MASK",
"links": [
145
],
"shape": 3,
"slot_index": 1
},
{
"name": "Image",
"type": "IMAGE",
"links": [],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "Image Remove Background Rembg (mtb)"
},
"widgets_values": [
false,
240,
10,
10,
false,
"#000000"
]
},
{
"id": 58,
"type": "PreviewImage",
"pos": [
1143,
506
],
"size": {
"0": 372.0478820800781,
"1": 417.78558349609375
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 140
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 64,
"type": "LayerUtility: ImageMaskScaleAs",
"pos": [
783,
507
],
"size": {
"0": 315,
"1": 122
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "scale_as",
"type": "*",
"link": 137
},
{
"name": "image",
"type": "IMAGE",
"link": 144
},
{
"name": "mask",
"type": "MASK",
"link": 145
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
140
],
"shape": 3,
"slot_index": 0
},
{
"name": "mask",
"type": "MASK",
"links": [
142
],
"shape": 3,
"slot_index": 1
},
{
"name": "original_size",
"type": "BOX",
"links": [],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "LayerUtility: ImageMaskScaleAs"
},
"widgets_values": [
"letterbox",
"lanczos"
]
},
{
"id": 2,
"type": "LoadImage",
"pos": [
131,
726
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
22,
144
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"512x512with_background (15).png",
"image"
]
}
],
"links": [
[
22,
2,
0,
16,
0,
"IMAGE"
],
[
137,
42,
0,
64,
0,
"*"
],
[
140,
64,
0,
58,
0,
"IMAGE"
],
[
142,
64,
1,
59,
0,
"MASK"
],
[
144,
2,
0,
64,
1,
"IMAGE"
],
[
145,
16,
1,
64,
2,
"MASK"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}