{
  "schemaVersion": 1,
  "recordType": "measurements-of-existing-browser-export-files",
  "scope": {
    "imagesUnmodified": true,
    "sourceOutputPixelScoreComputed": false,
    "whyNoSourcePixelScore": "Source and output dimensions differ, and the workflow intentionally stylizes the photograph. No source resampling, registration or reference reconstruction is performed.",
    "colorBoundary": "Means and differences use encoded RGB code values, not physical light, perceptual color distance or a ranking of image quality.",
    "browserBoundary": "The script only reads existing files. Browser execution and patch chronology are recorded separately in run.json; source-level layout tests remain separately scoped."
  },
  "cases": [
    {
      "id": "coffee",
      "input": {
        "file": "../../images/coffee.png",
        "bytes": 466706,
        "sha256": "cc02f8ca188b167c775a7101b5d767d1e71792cf762c33d6fa15a4599b5a8de7",
        "width": 600,
        "height": 400,
        "mode": "RGB",
        "pixels": 240000,
        "fullyOpaquePixels": 240000,
        "meanRgbCodeValues": [
          158.569087,
          85.794025,
          51.48475
        ]
      },
      "beforeLayoutFix": {
        "file": "coffee-before-layout-fix.png",
        "bytes": 2766647,
        "sha256": "2b46960f7d1d138855cdaaf11b7de401665350129f14a4fdf70da3e5c184586e",
        "width": 1536,
        "height": 1016,
        "mode": "RGBA",
        "pixels": 1560576,
        "fullyOpaquePixels": 1560576,
        "meanRgbCodeValues": [
          149.66369,
          91.077036,
          60.60965
        ]
      },
      "afterLayoutFix": {
        "file": "coffee-output.png",
        "bytes": 2776474,
        "sha256": "134d992e6f02dc2507a407de9bb9d27a909b428ef2ed03ba69557f6ece442c74",
        "width": 1536,
        "height": 1016,
        "mode": "RGBA",
        "pixels": 1560576,
        "fullyOpaquePixels": 1560576,
        "meanRgbCodeValues": [
          158.732446,
          84.806696,
          50.813595
        ]
      },
      "outputComparison": {
        "changedPixels": 1560546,
        "changedPixelPercent": 99.998078,
        "meanAbsoluteRgbCodeDifference": 14.212138,
        "definition": "Direct comparison of equal-size old/new exports: average absolute difference over every encoded 8-bit RGB component. Alpha is measured separately. This is not a quality or fidelity score."
      },
      "dimensionCheck": {
        "observedOutput": [
          1536,
          1016
        ],
        "predictedFromDefaultPreprocessing": [
          1536,
          1016
        ],
        "matchesReviewedRule": true,
        "note": "Default multiplier 3, no HD. The short dimension is floored before multiplication, then both dimensions are rounded down to multiples of eight."
      }
    },
    {
      "id": "chelsea",
      "input": {
        "file": "../../images/chelsea.png",
        "bytes": 240512,
        "sha256": "596aa1e7cb875eb79f437e310381d26b338a81c2da23439704a73c4651e8c4bb",
        "width": 451,
        "height": 300,
        "mode": "RGB",
        "pixels": 135300,
        "fullyOpaquePixels": 135300,
        "meanRgbCodeValues": [
          147.673089,
          111.444479,
          86.797857
        ]
      },
      "beforeLayoutFix": {
        "file": "chelsea-before-layout-fix.png",
        "bytes": 2661602,
        "sha256": "34cb873842d20a931e93d8bd53a364826c580587e7cfe08a287878e000c3074f",
        "width": 1536,
        "height": 1016,
        "mode": "RGBA",
        "pixels": 1560576,
        "fullyOpaquePixels": 1560576,
        "meanRgbCodeValues": [
          142.996173,
          113.506019,
          88.269262
        ]
      },
      "afterLayoutFix": {
        "file": "chelsea-output.png",
        "bytes": 2627589,
        "sha256": "2faa9501eb64a47c33ea944a4743d0a65717a783d73a5915d3cf8232ea4f40ff",
        "width": 1536,
        "height": 1016,
        "mode": "RGBA",
        "pixels": 1560576,
        "fullyOpaquePixels": 1560576,
        "meanRgbCodeValues": [
          148.360571,
          110.164365,
          82.755711
        ]
      },
      "outputComparison": {
        "changedPixels": 1560538,
        "changedPixelPercent": 99.997565,
        "meanAbsoluteRgbCodeDifference": 11.316039,
        "definition": "Direct comparison of equal-size old/new exports: average absolute difference over every encoded 8-bit RGB component. Alpha is measured separately. This is not a quality or fidelity score."
      },
      "dimensionCheck": {
        "observedOutput": [
          1536,
          1016
        ],
        "predictedFromDefaultPreprocessing": [
          1536,
          1016
        ],
        "matchesReviewedRule": true,
        "note": "Default multiplier 3, no HD. The short dimension is floored before multiplication, then both dimensions are rounded down to multiples of eight."
      }
    }
  ]
}
