{
  "schemaVersion": 1,
  "checkedOn": "2026-09-05",
  "method": "Deterministic geometry calculations using source pixels and physical print dimensions. No physical print test.",
  "license": "CC0-1.0",
  "source": {
    "url": "/samples/print-size-checker/pixel-ruler.png",
    "width": 1200,
    "height": 800,
    "bytes": 16248,
    "sha256": "cd768ff1058b8b78e7ea6453bed1c7de7c4f235c829ee1e8669b6eba292504da"
  },
  "implementationSha256": "9ec32e08240f1d88d967b17edb39d157712ae8cafdfd36a26d9cdac0a661dbe0",
  "generatorSha256": "2257dc46cd1a151867242b5bb4e00e73fdee1eb50cac94c952b73a1dc6be9133",
  "cases": [
    {
      "id": "landscape-6x4",
      "input": {
        "sourceWidth": 1200,
        "sourceHeight": 800,
        "targetPpi": 300,
        "printWidth": 6,
        "printHeight": 4,
        "unit": "in",
        "fit": "contain"
      },
      "result": {
        "sourceWidth": 1200,
        "sourceHeight": 800,
        "targetPpi": 300,
        "unit": "in",
        "fit": "contain",
        "widthInches": 6,
        "heightInches": 4,
        "ppi": 200,
        "meetsTarget": false,
        "imageWidthInches": 6,
        "imageHeightInches": 4,
        "visibleWidth": 1200,
        "visibleHeight": 800,
        "cropFraction": 0,
        "cropLeft": 0,
        "cropTop": 0,
        "requiredWidth": 1800,
        "requiredHeight": 1200,
        "maxWidthInches": 4,
        "maxHeightInches": 2.6666666666666665,
        "marginXInches": 0,
        "marginYInches": 0
      }
    },
    {
      "id": "square-with-margins",
      "input": {
        "sourceWidth": 1200,
        "sourceHeight": 800,
        "targetPpi": 300,
        "printWidth": 4,
        "printHeight": 4,
        "unit": "in",
        "fit": "contain"
      },
      "result": {
        "sourceWidth": 1200,
        "sourceHeight": 800,
        "targetPpi": 300,
        "unit": "in",
        "fit": "contain",
        "widthInches": 4,
        "heightInches": 4,
        "ppi": 300,
        "meetsTarget": true,
        "imageWidthInches": 4,
        "imageHeightInches": 2.666666666666667,
        "visibleWidth": 1200,
        "visibleHeight": 800,
        "cropFraction": 0,
        "cropLeft": 0,
        "cropTop": 0,
        "requiredWidth": 1200,
        "requiredHeight": 1200,
        "maxWidthInches": 4,
        "maxHeightInches": 2.6666666666666665,
        "marginXInches": 0,
        "marginYInches": 0.6666666666666665
      }
    },
    {
      "id": "square-cropped",
      "input": {
        "sourceWidth": 1200,
        "sourceHeight": 800,
        "targetPpi": 300,
        "printWidth": 4,
        "printHeight": 4,
        "unit": "in",
        "fit": "cover"
      },
      "result": {
        "sourceWidth": 1200,
        "sourceHeight": 800,
        "targetPpi": 300,
        "unit": "in",
        "fit": "cover",
        "widthInches": 4,
        "heightInches": 4,
        "ppi": 200,
        "meetsTarget": false,
        "imageWidthInches": 6,
        "imageHeightInches": 4,
        "visibleWidth": 800,
        "visibleHeight": 800,
        "cropFraction": 0.33333333333333337,
        "cropLeft": 200,
        "cropTop": 0,
        "requiredWidth": 1200,
        "requiredHeight": 1200,
        "maxWidthInches": 4,
        "maxHeightInches": 2.6666666666666665,
        "marginXInches": 0,
        "marginYInches": 0
      }
    },
    {
      "id": "centimeters",
      "input": {
        "sourceWidth": 1200,
        "sourceHeight": 800,
        "targetPpi": 300,
        "printWidth": 10.16,
        "printHeight": 6.773333333333333,
        "unit": "cm",
        "fit": "contain"
      },
      "result": {
        "sourceWidth": 1200,
        "sourceHeight": 800,
        "targetPpi": 300,
        "unit": "cm",
        "fit": "contain",
        "widthInches": 4,
        "heightInches": 2.6666666666666665,
        "ppi": 300,
        "meetsTarget": true,
        "imageWidthInches": 3.9999999999999996,
        "imageHeightInches": 2.6666666666666665,
        "visibleWidth": 1200,
        "visibleHeight": 800,
        "cropFraction": 0,
        "cropLeft": 0,
        "cropTop": 0,
        "requiredWidth": 1200,
        "requiredHeight": 800,
        "maxWidthInches": 4,
        "maxHeightInches": 2.6666666666666665,
        "marginXInches": 2.220446049250313e-16,
        "marginYInches": 0
      }
    }
  ]
}
