{
  "cobrai": {
    "sourceImage": "images/cobrai",
    "productCode": "COBRAI",
    "description": "Storm Door - Full View with Screen",
    "availableColors": {
      "white": {"rgb": [255, 255, 255], "name": "White"},
      "black": {"rgb": [30, 30, 30], "name": "Black"},
      "bronze": {"rgb": [110, 80, 50], "name": "Bronze"},
      "sandstone": {"rgb": [210, 190, 165], "name": "Sandstone"}
    },
    "colorableRegions": [
        {
            "name": "region_name",
            "topLeft": [24, 23],
            "bottomRight": [505, 1022],
            "description": "Width: 481px, Height: 999px"
        },
        {
            "name": "frame",
            "topLeft": [0, 0],
            "bottomRight": [100, 1450],
            "description": "Vertical frame left side"
        },
        {
            "name": "frame_right",
            "topLeft": [620, 0],
            "bottomRight": [720, 1450],
            "description": "Vertical frame right side"
        },
        {
            "name": "top_rail",
            "topLeft": [0, 0],
            "bottomRight": [720, 80],
            "description": "Top horizontal rail"
        },
        {
            "name": "mid_rail",
            "topLeft": [0, 590],
            "bottomRight": [720, 680],
            "description": "Middle horizontal rail"
        },
        {
            "name": "bottom_panel",
            "topLeft": [100, 1090],
            "bottomRight": [620, 1450],
            "description": "Bottom kickplate panel"
        }
    ],
    "hardwarePositions": {
        "handle_right": {
            "x": 580,
            "y": 730,
            "image": "images/hardware/handle-lever.png"
        },
        "handle_left": {
            "x": 140,
            "y": 730,
            "image": "images/hardware/handle-lever.png",
            "flip": true
        },
        "lock": {
            "x": 360,
            "y": 800,
            "image": "images/hardware/lock.png"
        }
    },
    "glassRegions": [
        {
            "name": "top_glass",
            "topLeft": [100, 80],
            "bottomRight": [620, 590],
            "description": "Top screen/glass area"
        },
        {
            "name": "bottom_glass",
            "topLeft": [100, 680],
            "bottomRight": [620, 1090],
            "description": "Bottom screen/glass area"
        }
    ],
    "metadata": {
        "imageWidth": 720,
        "imageHeight": 1450,
        "defaultColor": "white",
        "defaultHinge": "right"
    },
    "cache": {
        "enabled": true,
        "directory": "cache/product_images",
        "maxAge": 86400
    }
  }
}
