{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "LG"
        },
        "groups": [],
        "id": "e20a7fb5-3d72-41c9-a78c-fdf287ec46ec",
        "inputNode": {
          "bounding": [
            935.2877154863284,
            287.6179266898436,
            120,
            80
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "bc8c15e3-969a-4321-9518-84a5cdf64836",
            "linkIds": [
              10,
              14
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              55,
              20
            ],
            "type": "IMAGE"
          },
          {
            "id": "6288f9fa-a2ef-4285-a1b3-a35c52d4087f",
            "linkIds": [
              11
            ],
            "localized_name": "image_1",
            "name": "image_1",
            "pos": [
              55,
              40
            ],
            "type": "IMAGE"
          }
        ],
        "links": [
          {
            "id": 12,
            "origin_id": 12,
            "origin_slot": 0,
            "target_id": 13,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 13,
            "origin_id": 12,
            "origin_slot": 1,
            "target_id": 13,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 15,
            "origin_id": 13,
            "origin_slot": 0,
            "target_id": 14,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 10,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 12,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 14,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 14,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 11,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 13,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 17,
            "origin_id": 14,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          }
        ],
        "name": "Batch Images",
        "nodes": [
          {
            "flags": {
              "collapsed": true
            },
            "id": 12,
            "inputs": [
              {
                "link": 10,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  12
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  13
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              1115.2877154863284,
              342.6179266898436
            ],
            "properties": {
              "Node name for S&R": "GetImageSize",
              "cnr_id": "comfy-core",
              "ver": "0.3.76"
            },
            "size": [
              160,
              66
            ],
            "type": "GetImageSize",
            "widgets_values": []
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 13,
            "inputs": [
              {
                "link": 11,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 12,
                "localized_name": "target_width",
                "name": "target_width",
                "type": "INT",
                "widget": {
                  "name": "target_width"
                }
              },
              {
                "link": 13,
                "localized_name": "target_height",
                "name": "target_height",
                "type": "INT",
                "widget": {
                  "name": "target_height"
                }
              },
              {
                "link": null,
                "localized_name": "padding_color",
                "name": "padding_color",
                "type": "COMBO",
                "widget": {
                  "name": "padding_color"
                }
              },
              {
                "link": null,
                "localized_name": "interpolation",
                "name": "interpolation",
                "type": "COMBO",
                "widget": {
                  "name": "interpolation"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  15
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1115.2877154863284,
              392.6179266898436
            ],
            "properties": {
              "Node name for S&R": "ResizeAndPadImage",
              "cnr_id": "comfy-core",
              "ver": "0.3.76"
            },
            "size": [
              210,
              130
            ],
            "type": "ResizeAndPadImage",
            "widgets_values": [
              512,
              512,
              "white",
              "area"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 14,
            "inputs": [
              {
                "link": 14,
                "localized_name": "image1",
                "name": "image1",
                "type": "IMAGE"
              },
              {
                "link": 15,
                "localized_name": "image2",
                "name": "image2",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  17
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1115.2877154863284,
              292.6179266898436
            ],
            "properties": {
              "Node name for S&R": "ImageBatch",
              "cnr_id": "comfy-core",
              "ver": "0.3.76"
            },
            "size": [
              234.61484375,
              46
            ],
            "type": "ImageBatch",
            "widgets_values": []
          }
        ],
        "outputNode": {
          "bounding": [
            1351.4088092363284,
            297.6179266898436,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "7f588e1c-0a55-4023-930f-ec99d2f311df",
            "linkIds": [
              17
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              20,
              20
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 0,
          "lastLinkId": 21,
          "lastNodeId": 18,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        -1404.1292694336921,
        4967.319098746582
      ],
      "scale": 0.1881649165547167
    },
    "frontendVersion": "1.36.3",
    "workflowRendererVersion": "LG"
  },
  "groups": [],
  "id": "1532265d-5a1f-40c4-ad49-82de6d7ff2ac",
  "last_link_id": 21,
  "last_node_id": 18,
  "links": [
    [
      16,
      17,
      0,
      15,
      0,
      "IMAGE"
    ],
    [
      19,
      10,
      0,
      18,
      0,
      "IMAGE"
    ],
    [
      20,
      11,
      0,
      18,
      1,
      "IMAGE"
    ],
    [
      21,
      18,
      0,
      17,
      0,
      "IMAGE"
    ]
  ],
  "nodes": [
    {
      "flags": {
        "collapsed": false
      },
      "id": 18,
      "inputs": [
        {
          "label": "image_1",
          "link": 19,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "label": "image_2",
          "link": 20,
          "localized_name": "image_1",
          "name": "image_1",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            21
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        820,
        290
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "previewExposures": [],
        "proxyWidgets": [],
        "ver": "0.4.0"
      },
      "size": [
        225,
        100
      ],
      "type": "e20a7fb5-3d72-41c9-a78c-fdf287ec46ec"
    },
    {
      "flags": {},
      "id": 15,
      "inputs": [
        {
          "link": 16,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        }
      ],
      "mode": 0,
      "order": 4,
      "outputs": [
        {
          "links": null,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1540,
        290
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        470,
        740
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 17,
      "inputs": [
        {
          "link": 21,
          "localized_name": "images",
          "name": "images",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "files",
          "name": "files",
          "shape": 7,
          "type": "GEMINI_INPUT_FILES"
        },
        {
          "link": null,
          "localized_name": "prompt",
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          }
        },
        {
          "link": null,
          "localized_name": "model",
          "name": "model",
          "type": "COMBO",
          "widget": {
            "name": "model"
          }
        },
        {
          "link": null,
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          }
        },
        {
          "link": null,
          "localized_name": "aspect_ratio",
          "name": "aspect_ratio",
          "type": "COMBO",
          "widget": {
            "name": "aspect_ratio"
          }
        },
        {
          "link": null,
          "localized_name": "resolution",
          "name": "resolution",
          "type": "COMBO",
          "widget": {
            "name": "resolution"
          }
        },
        {
          "link": null,
          "localized_name": "response_modalities",
          "name": "response_modalities",
          "type": "COMBO",
          "widget": {
            "name": "response_modalities"
          }
        },
        {
          "link": null,
          "localized_name": "system_prompt",
          "name": "system_prompt",
          "shape": 7,
          "type": "STRING",
          "widget": {
            "name": "system_prompt"
          }
        }
      ],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            16
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        1050,
        290
      ],
      "properties": {
        "Node name for S&R": "GeminiImage2Node",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        420,
        740
      ],
      "type": "GeminiImage2Node",
      "widgets_values": [
        "The subject from image 1 is holding the product from image 2, the product logo is visible.fbfbhbsfbhbsff f fe fef",
        "gemini-3-pro-image-preview",
        12345,
        "randomize",
        "auto",
        "2K",
        "IMAGE+TEXT",
        "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 10,
      "inputs": [
        {
          "link": null,
          "localized_name": "image",
          "name": "image",
          "type": "COMBO",
          "widget": {
            "name": "image"
          }
        },
        {
          "link": null,
          "localized_name": "choose file to upload",
          "name": "upload",
          "type": "IMAGEUPLOAD",
          "widget": {
            "name": "upload"
          }
        }
      ],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            19
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        285.28771548632835,
        290
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        430,
        610
      ],
      "title": "Load Subject Image",
      "type": "LoadImage",
      "widgets_values": [
        "subject-elderly-lady-portrait.png",
        "image"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 11,
      "inputs": [
        {
          "link": null,
          "localized_name": "image",
          "name": "image",
          "type": "COMBO",
          "widget": {
            "name": "image"
          }
        },
        {
          "link": null,
          "localized_name": "choose file to upload",
          "name": "upload",
          "type": "IMAGEUPLOAD",
          "widget": {
            "name": "upload"
          }
        }
      ],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            20
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        285.28771548632835,
        952.6179266898437
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        430,
        610
      ],
      "title": "Load Product Image",
      "type": "LoadImage",
      "widgets_values": [
        "product-toothbrush.png",
        "image"
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}