{
  "1": {
    "inputs": {
      "image": "snake_on_jacket.jpg"
    },
    "class_type": "LoadImage",
    "_meta": {
      "title": "Load Character Image"
    }
  },
  "2": {
    "inputs": {
      "image": "forest_background.jpg"
    },
    "class_type": "LoadImage",
    "_meta": {
      "title": "Load Background Image"
    }
  },
  "52": {
    "inputs": {
      "value": 0
    },
    "class_type": "PrimitiveInt",
    "_meta": {
      "title": "Crop Inset Grid Images"
    }
  },
  "53:4": {
    "inputs": {
      "images": [
        "53:8",
        0
      ]
    },
    "class_type": "PreviewImage",
    "_meta": {
      "title": "Preview Image"
    }
  },
  "53:5": {
    "inputs": {
      "images": [
        "53:9",
        0
      ]
    },
    "class_type": "PreviewImage",
    "_meta": {
      "title": "Preview Image"
    }
  },
  "53:7": {
    "inputs": {
      "images": [
        "53:11",
        0
      ]
    },
    "class_type": "PreviewImage",
    "_meta": {
      "title": "Preview Image"
    }
  },
  "53:16": {
    "inputs": {
      "value": "(a-2*b) / 2",
      "a": [
        "53:17",
        1
      ],
      "b": [
        "53:14",
        0
      ]
    },
    "class_type": "SimpleMath+",
    "_meta": {
      "title": "HEIGHT"
    }
  },
  "53:6": {
    "inputs": {
      "images": [
        "53:10",
        0
      ]
    },
    "class_type": "PreviewImage",
    "_meta": {
      "title": "Preview Image"
    }
  },
  "53:15": {
    "inputs": {
      "value": "(a-2*b) / 2",
      "a": [
        "53:17",
        0
      ],
      "b": [
        "53:14",
        0
      ]
    },
    "class_type": "SimpleMath+",
    "_meta": {
      "title": "WIDTH"
    }
  },
  "53:17": {
    "inputs": {
      "image": [
        "3",
        0
      ]
    },
    "class_type": "GetImageSize",
    "_meta": {
      "title": "Get Image Size"
    }
  },
  "53:21": {
    "inputs": {
      "images": [
        "53:20",
        0
      ]
    },
    "class_type": "PreviewImage",
    "_meta": {
      "title": "Preview Image"
    }
  },
  "53:23": {
    "inputs": {
      "value": "(a) / 2",
      "b": 0.0,
      "a": [
        "53:17",
        0
      ]
    },
    "class_type": "SimpleMath+",
    "_meta": {
      "title": "WIDTH / 2"
    }
  },
  "53:22": {
    "inputs": {
      "value": "(a) / 2",
      "b": 0.0,
      "a": [
        "53:17",
        1
      ]
    },
    "class_type": "SimpleMath+",
    "_meta": {
      "title": "HEIGHT / 2"
    }
  },
  "53:20": {
    "inputs": {
      "upscale_method": "nearest-exact",
      "keep_proportion": "stretch",
      "pad_color": "0, 0, 0",
      "crop_position": "center",
      "divisible_by": 2,
      "device": "cpu",
      "image": [
        "53:19",
        0
      ],
      "width": [
        "53:23",
        0
      ],
      "height": [
        "53:22",
        0
      ]
    },
    "class_type": "ImageResizeKJv2",
    "_meta": {
      "title": "Resize Images"
    }
  },
  "53:8": {
    "inputs": {
      "image": [
        "3",
        0
      ],
      "width": [
        "53:15",
        0
      ],
      "height": [
        "53:16",
        0
      ],
      "x": [
        "53:24",
        0
      ],
      "y": [
        "53:24",
        0
      ]
    },
    "class_type": "ImageCrop",
    "_meta": {
      "title": "1"
    }
  },
  "53:19": {
    "inputs": {
      "inputcount": 4,
      "image_1": [
        "53:8",
        0
      ],
      "image_2": [
        "53:9",
        0
      ],
      "image_3": [
        "53:10",
        0
      ],
      "image_4": [
        "53:11",
        0
      ]
    },
    "class_type": "ImageBatchMulti",
    "_meta": {
      "title": "Image Batch Multi"
    }
  },
  "53:9": {
    "inputs": {
      "y": 0,
      "image": [
        "3",
        0
      ],
      "width": [
        "53:15",
        0
      ],
      "height": [
        "53:16",
        0
      ],
      "x": [
        "53:13",
        0
      ]
    },
    "class_type": "ImageCrop",
    "_meta": {
      "title": "2"
    }
  },
  "53:10": {
    "inputs": {
      "image": [
        "3",
        0
      ],
      "width": [
        "53:15",
        0
      ],
      "height": [
        "53:16",
        0
      ],
      "x": [
        "53:24",
        0
      ],
      "y": [
        "53:12",
        0
      ]
    },
    "class_type": "ImageCrop",
    "_meta": {
      "title": "3"
    }
  },
  "53:11": {
    "inputs": {
      "image": [
        "3",
        0
      ],
      "width": [
        "53:15",
        0
      ],
      "height": [
        "53:16",
        0
      ],
      "x": [
        "53:13",
        0
      ],
      "y": [
        "53:12",
        0
      ]
    },
    "class_type": "ImageCrop",
    "_meta": {
      "title": "4"
    }
  },
  "53:13": {
    "inputs": {
      "value": "a + (b/2)",
      "a": [
        "53:15",
        0
      ],
      "b": [
        "53:14",
        0
      ]
    },
    "class_type": "SimpleMath+",
    "_meta": {
      "title": "Col 2 - X val"
    }
  },
  "53:12": {
    "inputs": {
      "value": "a + (b/2)",
      "a": [
        "53:16",
        0
      ],
      "b": [
        "53:14",
        0
      ]
    },
    "class_type": "SimpleMath+",
    "_meta": {
      "title": "Row 2 - Y val"
    }
  },
  "53:24": {
    "inputs": {
      "value": "b/2",
      "a": 0.0,
      "b": [
        "53:14",
        0
      ]
    },
    "class_type": "SimpleMath+",
    "_meta": {
      "title": "Col 1 - X val"
    }
  },
  "53:14": {
    "inputs": {
      "value": "a",
      "b": 0.0,
      "a": [
        "52",
        0
      ]
    },
    "class_type": "SimpleMath+",
    "_meta": {
      "title": "Crop Inset Grid Images Value"
    }
  },
  "5": {
    "inputs": {
      "image": "brown_moisturizer_bottle.jpg"
    },
    "class_type": "LoadImage",
    "_meta": {
      "title": "Load Product Image"
    }
  },
  "3": {
    "inputs": {
      "prompt": "Generate a 2x2 (2 rows, 2 cols) grid.\n\nDivide the frame in 4 different 16:9 frames.\n\nFashion editorial photoshoot of the model from image 1 in the scene from image 2. The character is showcasing the product from image 3. No visible margin or borders between grid images.\n\nFor each frame choose the angle and type of shot, ensure the character and product are visible in each frame, seamlessly interacting.",
      "model": "gemini-3-pro-image-preview",
      "seed": 12345,
      "aspect_ratio": "16:9",
      "resolution": "4K",
      "response_modalities": "IMAGE+TEXT",
      "system_prompt": "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.",
      "images": [
        "15:10:14",
        0
      ]
    },
    "class_type": "GeminiImage2Node",
    "_meta": {
      "title": "Nano Banana Pro (Google Gemini Image)"
    }
  },
  "62": {
    "inputs": {
      "prompt": "Upscale image 1 while maintaining pose and composition, add subtle details. Use the product from image 2 to add back details to the product.",
      "model": "gemini-3-pro-image-preview",
      "seed": 12345,
      "aspect_ratio": "auto",
      "resolution": "4K",
      "response_modalities": "IMAGE+TEXT",
      "system_prompt": "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.",
      "images": [
        "68:14",
        0
      ]
    },
    "class_type": "GeminiImage2Node",
    "_meta": {
      "title": "Nano Banana Pro (Google Gemini Image)"
    }
  },
  "60": {
    "inputs": {
      "images": [
        "75:74",
        0
      ]
    },
    "class_type": "PreviewImage",
    "_meta": {
      "title": "Preview Selected Image"
    }
  },
  "68:12": {
    "inputs": {
      "image": [
        "75:74",
        0
      ]
    },
    "class_type": "GetImageSize",
    "_meta": {
      "title": "Get Image Size"
    }
  },
  "68:13": {
    "inputs": {
      "padding_color": "white",
      "interpolation": "area",
      "image": [
        "5",
        0
      ],
      "target_width": [
        "68:12",
        0
      ],
      "target_height": [
        "68:12",
        1
      ]
    },
    "class_type": "ResizeAndPadImage",
    "_meta": {
      "title": "Resize And Pad Image"
    }
  },
  "68:14": {
    "inputs": {
      "image1": [
        "75:74",
        0
      ],
      "image2": [
        "68:13",
        0
      ]
    },
    "class_type": "ImageBatch",
    "_meta": {
      "title": "Batch Images (DEPRECATED)"
    }
  },
  "54": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_1",
      "images": [
        "53:8",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image 1"
    }
  },
  "55": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_2",
      "images": [
        "53:9",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image 2"
    }
  },
  "56": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_3",
      "images": [
        "53:10",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image 3"
    }
  },
  "57": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_4",
      "images": [
        "53:11",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image 4"
    }
  },
  "4": {
    "inputs": {
      "filename_prefix": "ComfyUI-2x2_grid",
      "images": [
        "3",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image"
    }
  },
  "15:10:12": {
    "inputs": {
      "image": [
        "15:9:14",
        0
      ]
    },
    "class_type": "GetImageSize",
    "_meta": {
      "title": "Get Image Size"
    }
  },
  "15:10:13": {
    "inputs": {
      "padding_color": "white",
      "interpolation": "area",
      "image": [
        "5",
        0
      ],
      "target_width": [
        "15:10:12",
        0
      ],
      "target_height": [
        "15:10:12",
        1
      ]
    },
    "class_type": "ResizeAndPadImage",
    "_meta": {
      "title": "Resize And Pad Image"
    }
  },
  "15:10:14": {
    "inputs": {
      "image1": [
        "15:9:14",
        0
      ],
      "image2": [
        "15:10:13",
        0
      ]
    },
    "class_type": "ImageBatch",
    "_meta": {
      "title": "Batch Images (DEPRECATED)"
    }
  },
  "15:9:12": {
    "inputs": {
      "image": [
        "1",
        0
      ]
    },
    "class_type": "GetImageSize",
    "_meta": {
      "title": "Get Image Size"
    }
  },
  "15:9:13": {
    "inputs": {
      "padding_color": "white",
      "interpolation": "area",
      "image": [
        "2",
        0
      ],
      "target_width": [
        "15:9:12",
        0
      ],
      "target_height": [
        "15:9:12",
        1
      ]
    },
    "class_type": "ResizeAndPadImage",
    "_meta": {
      "title": "Resize And Pad Image"
    }
  },
  "15:9:14": {
    "inputs": {
      "image1": [
        "1",
        0
      ],
      "image2": [
        "15:9:13",
        0
      ]
    },
    "class_type": "ImageBatch",
    "_meta": {
      "title": "Batch Images (DEPRECATED)"
    }
  },
  "77": {
    "inputs": {
      "filename_prefix": "ComfyUI-image_upscaled",
      "images": [
        "62",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image"
    }
  },
  "75:73": {
    "inputs": {
      "value": "a - 1",
      "b": 0.0,
      "a": [
        "75:69",
        0
      ]
    },
    "class_type": "SimpleMath+",
    "_meta": {
      "title": "Image # as index"
    }
  },
  "75:74": {
    "inputs": {
      "length": 1,
      "image": [
        "53:20",
        0
      ],
      "batch_index": [
        "75:73",
        0
      ]
    },
    "class_type": "ImageFromBatch",
    "_meta": {
      "title": "Get Image from Batch"
    }
  },
  "75:69": {
    "inputs": {
      "value": 1
    },
    "class_type": "PrimitiveInt",
    "_meta": {
      "title": "Select Image Number"
    }
  }
}
