{
  "last_node_id": 80,
  "last_link_id": 24,
  "nodes": [
    {
      "id": 1,
      "type": "LoadImage",
      "pos": [100, 300],
      "size": [200, 260],
      "flags": {},
      "inputs": [],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"},
        {"name": "MASK", "index": 0, "type": "MASK"},
        {"name": "UA", "index": 0, "type": "IMAGE"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": ["input_photo.png"]
    },
    {
      "id": 2,
      "type": "LoadImage",
      "pos": [100, 600],
      "size": [200, 260],
      "flags": {},
      "inputs": [],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"},
        {"name": "MASK", "index": 0, "type": "MASK"},
        {"name": "UA", "index": 0, "type": "IMAGE"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": ["passport_template.png"]
    },
    {
      "id": 3,
      "type": "ImageScale",
      "pos": [400, 300],
      "size": [200, 140],
      "flags": {},
      "inputs": [
        {"name": "image", "index": 0, "type": "IMAGE"},
        {"name": "scale_factor", "index": 0, "type": "FLOAT"},
        {"name": "upscale_algorithm", "index": 0, "type": "STRING"},
        {"name": "keep_aspect", "index": 0, "type": "BOOLEAN"}
      ],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": [1.0, "lanczos", true]
    },
    {
      "id": 4,
      "type": "ImageScale",
      "pos": [400, 600],
      "size": [200, 140],
      "flags": {},
      "inputs": [
        {"name": "image", "index": 0, "type": "IMAGE"},
        {"name": "scale_factor", "index": 0, "type": "FLOAT"},
        {"name": "upscale_algorithm", "index": 0, "type": "STRING"},
        {"name": "keep_aspect", "index": 0, "type": "BOOLEAN"}
      ],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": [1.0, "lanczos", true]
    },
    {
      "id": 5,
      "type": "ImageCompositeMasked",
      "pos": [700, 300],
      "size": [250, 160],
      "flags": {},
      "inputs": [
        {"name": "image", "index": 0, "type": "IMAGE"},
        {"name": "mask", "index": 0, "type": "MASK"},
        {"name": "composite_image", "index": 0, "type": "IMAGE"},
        {"name": "composite_mask", "index": 0, "type": "MASK"}
      ],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"},
        {"name": "MASK", "index": 0, "type": "MASK"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": [1.0, 1.0, "multiply"]
    },
    {
      "id": 6,
      "type": "ImageCompositeMasked",
      "pos": [700, 600],
      "size": [250, 160],
      "flags": {},
      "inputs": [
        {"name": "image", "index": 0, "type": "IMAGE"},
        {"name": "mask", "index": 0, "type": "MASK"},
        {"name": "composite_image", "index": 0, "type": "IMAGE"},
        {"name": "composite_mask", "index": 0, "type": "MASK"}
      ],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"},
        {"name": "MASK", "index": 0, "type": "MASK"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": [1.0, 1.0, "multiply"]
    },
    {
      "id": 7,
      "type": "SaveImage",
      "pos": [1000, 300],
      "size": [200, 260],
      "flags": {},
      "inputs": [
        {"name": "images", "index": 0, "type": "IMAGE"}
      ],
      "outputs": [],
      "properties": {
        "node": true
      },
      "widgets_values": ["output_photo_composite.png"]
    },
    {
      "id": 8,
      "type": "SaveImage",
      "pos": [1000, 600],
      "size": [200, 260],
      "flags": {},
      "inputs": [
        {"name": "images", "index": 0, "type": "IMAGE"}
      ],
      "outputs": [],
      "properties": {
        "node": true
      },
      "widgets_values": ["output_template_composite.png"]
    },
    {
      "id": 9,
      "type": "ImageCompositeMasked",
      "pos": [1000, 1000],
      "size": [250, 160],
      "flags": {},
      "inputs": [
        {"name": "image", "index": 0, "type": "IMAGE"},
        {"name": "mask", "index": 0, "type": "MASK"},
        {"name": "composite_image", "index": 0, "type": "IMAGE"},
        {"name": "composite_mask", "index": 0, "type": "MASK"}
      ],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"},
        {"name": "MASK", "index": 0, "type": "MASK"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": [1.0, 1.0, "multiply"]
    },
    {
      "id": 10,
      "type": "ImageText",
      "pos": [1300, 300],
      "size": [300, 200],
      "flags": {},
      "inputs": [
        {"name": "image", "index": 0, "type": "IMAGE"},
        {"name": "text", "index": 0, "type": "STRING"},
        {"name": "position", "index": 0, "type": "STRING"},
        {"name": "font_size", "index": 0, "type": "FLOAT"},
        {"name": "color", "index": 0, "type": "STRING"},
        {"name": "font", "index": 0, "type": "STRING"}
      ],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": ["test", "bottom_left", 24, "#000000", "Arial"]
    },
    {
      "id": 11,
      "type": "ImageText",
      "pos": [1300, 600],
      "size": [300, 200],
      "flags": {},
      "inputs": [
        {"name": "image", "index": 0, "type": "IMAGE"},
        {"name": "text", "index": 0, "type": "STRING"},
        {"name": "position", "index": 0, "type": "STRING"},
        {"name": "font_size", "index": 0, "type": "FLOAT"},
        {"name": "color", "index": 0, "type": "STRING"},
        {"name": "font", "index": 0, "type": "STRING"}
      ],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": ["test", "bottom_left", 24, "#000000", "Arial"]
    },
    {
      "id": 12,
      "type": "ImageText",
      "pos": [1300, 1000],
      "size": [300, 200],
      "flags": {},
      "inputs": [
        {"name": "image", "index": 0, "type": "IMAGE"},
        {"name": "text", "index": 0, "type": "STRING"},
        {"name": "position", "index": 0, "type": "STRING"},
        {"name": "font_size", "index": 0, "type": "FLOAT"},
        {"name": "color", "index": 0, "type": "STRING"},
        {"name": "font", "index": 0, "type": "STRING"}
      ],
      "outputs": [
        {"name": "IMAGE", "index": 0, "type": "IMAGE"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": ["test", "bottom_left", 24, "#000000", "Arial"]
    },
    {
      "id": 13,
      "type": "SaveImage",
      "pos": [1600, 1000],
      "size": [200, 260],
      "flags": {},
      "inputs": [
        {"name": "images", "index": 0, "type": "IMAGE"}
      ],
      "outputs": [],
      "properties": {
        "node": true
      },
      "widgets_values": ["final_output.png"]
    },
    {
      "id": 14,
      "type": "LoadText",
      "pos": [1600, 300],
      "size": [200, 140],
      "flags": {},
      "inputs": [
        {"name": "text_file", "index": 0, "type": "STRING"}
      ],
      "outputs": [
        {"name": "TEXT", "index": 0, "type": "STRING"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": ["test.txt"]
    },
    {
      "id": 15,
      "type": "LoadText",
      "pos": [1600, 600],
      "size": [200, 140],
      "flags": {},
      "inputs": [
        {"name": "text_file", "index": 0, "type": "STRING"}
      ],
      "outputs": [
        {"name": "TEXT", "index": 0, "type": "STRING"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": ["test.txt"]
    },
    {
      "id": 16,
      "type": "LoadText",
      "pos": [1600, 1000],
      "size": [200, 140],
      "flags": {},
      "inputs": [
        {"name": "text_file", "index": 0, "type": "STRING"}
      ],
      "outputs": [
        {"name": "TEXT", "index": 0, "type": "STRING"}
      ],
      "properties": {
        "node": true
      },
      "widgets_values": ["test.txt"]
    }
  ],
  "groups": [],
  "config": {},
  "links": [
    [1, 1, 0, 3, 0, 0],
    [2, 2, 0, 4, 0, 0],
    [3, 3, 0, 5, 0, 0],
    [4, 4, 0, 6, 0, 0],
    [5, 5, 0, 9, 0, 0],
    [6, 6, 0, 9, 1, 0],
    [9, 9, 0, 10, 0, 0],
    [14, 14, 0, 10, 1, 0],
    [9, 9, 0, 11, 0, 0],
    [15, 15, 0, 11, 1, 0],
    [12, 12, 0, 13, 0, 0],
    [16, 16, 0, 12, 1, 0],
    [13, 13, 0, 15, 0, 0]
  ],
  "version": 0.4,
  "model": "ComfyUI",
  "prompt": "passport_generator",
  "widgets_values": [
    "input_photo.png",
    "passport_template.png",
    "output_photo_composite.png",
    "output_template_composite.png"
  ]
}
