From fbd5ba3148a3908efd98ab72408ee5bf175b2e0b Mon Sep 17 00:00:00 2001 From: Ludovic Anterieur Date: Sat, 29 Jun 2024 01:03:05 +0200 Subject: [PATCH] demo workflow --- demo/Industrial_Magick_demo.json | 810 +++++++++++++++++++++++++++++++ 1 file changed, 810 insertions(+) create mode 100644 demo/Industrial_Magick_demo.json diff --git a/demo/Industrial_Magick_demo.json b/demo/Industrial_Magick_demo.json new file mode 100644 index 0000000..c355f19 --- /dev/null +++ b/demo/Industrial_Magick_demo.json @@ -0,0 +1,810 @@ +{ + "last_node_id": 14, + "last_link_id": 12, + "nodes": [ + { + "id": 9, + "type": "ShowText|pysssss", + "pos": [ + 360, + 770 + ], + "size": [ + 320, + 80 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 6, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 4, + "type": "ShowText|pysssss", + "pos": [ + 360, + 310 + ], + "size": { + "0": 320, + "1": 80 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 3, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 3, + "type": "ShowText|pysssss", + "pos": [ + 370, + 180 + ], + "size": { + "0": 320, + "1": 80 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 2, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "E:\\industrial-magick-test.png" + ] + }, + { + "id": 2, + "type": "PreviewImage", + "pos": [ + 380, + 30 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 6, + "mode": 4, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 1 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 6, + "type": "IndustrialMagick", + "pos": [ + 0, + 490 + ], + "size": [ + 320, + 362 + ], + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 9 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "image_path", + "type": "STRING", + "links": [ + 5 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "error", + "type": "STRING", + "links": [ + 6 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "IndustrialMagick" + }, + "widgets_values": [ + true, + 10, + "-size", + "320x100", + "xc:lightblue", + "-pointsize", + "36", + "-fill", + "blue", + "-draw", + "text 25,65 'Industrial Magick'", + "E:\\industrial-magick-test.png", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + { + "id": 8, + "type": "ShowText|pysssss", + "pos": [ + 360, + 640 + ], + "size": [ + 320, + 80 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 5, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "E:\\industrial-magick-test.png" + ] + }, + { + "id": 12, + "type": "PreviewBridge", + "pos": [ + 710, + 490 + ], + "size": [ + 320, + 290 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 9 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 10 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "PreviewBridge" + }, + "widgets_values": [ + "$undefined-0" + ] + }, + { + "id": 10, + "type": "IndustrialMagickImageIngest", + "pos": [ + 1064, + 488.1457233886719 + ], + "size": { + "0": 210, + "1": 26 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 10 + } + ], + "outputs": [ + { + "name": "image_path", + "type": "STRING", + "links": [ + 7, + 11 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "IndustrialMagickImageIngest" + } + }, + { + "id": 1, + "type": "IndustrialMagick", + "pos": [ + 0, + 30 + ], + "size": { + "0": 320, + "1": 362 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 1 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "image_path", + "type": "STRING", + "links": [ + 2 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "error", + "type": "STRING", + "links": [ + 3 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "IndustrialMagick" + }, + "widgets_values": [ + false, + 10, + "-size", + "320x100", + "xc:lightblue", + "-pointsize", + "36", + "-fill", + "blue", + "-draw", + "text 25,65 'Industrial Magick'", + "E:\\industrial-magick-test.png", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + { + "id": 11, + "type": "ShowText|pysssss", + "pos": [ + 1334, + 488.1457233886719 + ], + "size": [ + 320, + 80 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 7, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "E:\\ComfyUI_fresh\\ComfyUI\\temp\\ImageMagick_20240629_002641.png" + ] + }, + { + "id": 13, + "type": "IndustrialMagick", + "pos": [ + 1340, + 613.1457233886728 + ], + "size": [ + 320, + 220 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "param_1", + "type": "STRING", + "link": 11, + "widget": { + "name": "param_1" + }, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 12 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "image_path", + "type": "STRING", + "links": [], + "shape": 3, + "slot_index": 1 + }, + { + "name": "error", + "type": "STRING", + "links": [], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "IndustrialMagick" + }, + "widgets_values": [ + true, + 4, + "", + "-rotate", + "90", + "E:\\industrial-magick-test-rotated.png", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + { + "id": 14, + "type": "PreviewImage", + "pos": [ + 1690, + 613.1457233886728 + ], + "size": [ + 210, + 250 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 12 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 5, + "type": "CR Text", + "pos": [ + 780, + 60 + ], + "size": [ + 680, + 96 + ], + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "text", + "type": "*", + "links": null, + "shape": 3 + }, + { + "name": "show_help", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "title": "Sample ImageMagick command", + "properties": { + "Node name for S&R": "CR Text" + }, + "widgets_values": [ + "magick -size 320x100 xc:lightblue -pointsize 36 -fill blue -draw \"text 25,65 'Industrial Magick'\" text_draw.gif" + ] + } + ], + "links": [ + [ + 1, + 1, + 0, + 2, + 0, + "IMAGE" + ], + [ + 2, + 1, + 1, + 3, + 0, + "STRING" + ], + [ + 3, + 1, + 2, + 4, + 0, + "STRING" + ], + [ + 5, + 6, + 1, + 8, + 0, + "STRING" + ], + [ + 6, + 6, + 2, + 9, + 0, + "STRING" + ], + [ + 7, + 10, + 0, + 11, + 0, + "STRING" + ], + [ + 9, + 6, + 0, + 12, + 0, + "IMAGE" + ], + [ + 10, + 12, + 0, + 10, + 0, + "IMAGE" + ], + [ + 11, + 10, + 0, + 13, + 0, + "STRING" + ], + [ + 12, + 13, + 0, + 14, + 0, + "IMAGE" + ] + ], + "groups": [ + { + "title": "By default, no image is passed", + "bounding": [ + -10, + -44, + 710, + 446 + ], + "color": "#3f789e", + "font_size": 24, + "locked": false + }, + { + "title": "With ’return_image’ to true, image is passed", + "bounding": [ + -10, + 416, + 1050, + 446 + ], + "color": "#3f789e", + "font_size": 24, + "locked": false + }, + { + "title": "Loader/Ingester to use images in command", + "bounding": [ + 1054, + 414, + 856, + 459 + ], + "color": "#3f789e", + "font_size": 24, + "locked": false + } + ], + "config": {}, + "extra": { + "ds": { + "scale": 0.7513148009015777, + "offset": [ + 271.0632514000008, + 213.48768121772977 + ] + } + }, + "version": 0.4 +} \ No newline at end of file