{
  "title": "Why a photo turns sideways after its metadata is removed",
  "article": "https://bitinz.com/guides/exif-orientation-test",
  "environment": {
    "measuredOn": "2026-11-16",
    "os": "macOS 27.0.1",
    "browser": "Google Chrome 157.0.8103.78, headless",
    "imagemagick": "7.1.1-47 Q16-HDRI",
    "libjpegTurbo": "3.2.0",
    "libwebp": "1.6.0",
    "exiftool": "12.57"
  },
  "sources": [
    {
      "path": "/samples/beach.jpg",
      "bytes": 284392,
      "sha256": "adf78689e4d0e348d47c942d724dfa8d92e85b82ca11824e05f3fdb92d84d8ec",
      "width": 1400,
      "height": 933,
      "description": "1400 × 933 copy of Pexels photo 292442 (https://www.pexels.com/photo/brown-drift-woods-beside-water-292442/), used under the Pexels License (https://www.pexels.com/license/)."
    }
  ],
  "results": {
    "cards": [
      {
        "orientation": 1,
        "meaning": "Normal",
        "storedSize": "320x200",
        "chromeIntrinsicSize": "320x200",
        "corners": {
          "img": "ABCD",
          "cssBackground": "ABCD",
          "canvas": "ABCD"
        }
      },
      {
        "orientation": 2,
        "meaning": "Mirror horizontally",
        "storedSize": "320x200",
        "chromeIntrinsicSize": "320x200",
        "corners": {
          "img": "BADC",
          "cssBackground": "BADC",
          "canvas": "BADC"
        }
      },
      {
        "orientation": 3,
        "meaning": "Rotate 180°",
        "storedSize": "320x200",
        "chromeIntrinsicSize": "320x200",
        "corners": {
          "img": "DCBA",
          "cssBackground": "DCBA",
          "canvas": "DCBA"
        }
      },
      {
        "orientation": 4,
        "meaning": "Mirror vertically",
        "storedSize": "320x200",
        "chromeIntrinsicSize": "320x200",
        "corners": {
          "img": "CDAB",
          "cssBackground": "CDAB",
          "canvas": "CDAB"
        }
      },
      {
        "orientation": 5,
        "meaning": "Transpose",
        "storedSize": "320x200",
        "chromeIntrinsicSize": "200x320",
        "corners": {
          "img": "ACBD",
          "cssBackground": "ACBD",
          "canvas": "ACBD"
        }
      },
      {
        "orientation": 6,
        "meaning": "Rotate 90° clockwise",
        "storedSize": "320x200",
        "chromeIntrinsicSize": "200x320",
        "corners": {
          "img": "CADB",
          "cssBackground": "CADB",
          "canvas": "CADB"
        }
      },
      {
        "orientation": 7,
        "meaning": "Transverse",
        "storedSize": "320x200",
        "chromeIntrinsicSize": "200x320",
        "corners": {
          "img": "DBCA",
          "cssBackground": "DBCA",
          "canvas": "DBCA"
        }
      },
      {
        "orientation": 8,
        "meaning": "Rotate 90° anticlockwise",
        "storedSize": "320x200",
        "chromeIntrinsicSize": "200x320",
        "corners": {
          "img": "BDAC",
          "cssBackground": "BDAC",
          "canvas": "BDAC"
        }
      }
    ],
    "cornerOrder": "top-left, top-right, bottom-left, bottom-right; the card itself is ABCD",
    "photo": [
      {
        "file": "beach-orientation-6.jpg",
        "storedSize": "320x480",
        "orientation": 6,
        "chromeDisplaySize": "480x320"
      },
      {
        "file": "beach-metadata-removed.jpg",
        "storedSize": "320x480",
        "orientation": null,
        "chromeDisplaySize": "320x480"
      },
      {
        "file": "beach-rotated-untagged.jpg",
        "storedSize": "480x320",
        "orientation": null,
        "chromeDisplaySize": "480x320"
      }
    ],
    "bitinzCheck": "Compressing beach-orientation-6.jpg with the Bitinz engine kept Orientation 6 (local run, 2026-11-16)."
  },
  "figures": [
    {
      "path": "/research/2026-11/exif-orientation-test/figures/eight-orientations.png",
      "bytes": 68300,
      "sha256": "4e38b48635da33892ddec6f876123b0993f145d229f86b9d2101c77fc580d563",
      "width": 1017,
      "height": 966,
      "method": "Cut from a Chrome screenshot of the test page."
    }
  ],
  "commands": "/research/2026-11/exif-orientation-test/commands.sh",
  "files": [
    {
      "path": "/research/2026-11/exif-orientation-test/files/beach-metadata-removed.jpg",
      "bytes": 73579,
      "sha256": "6038d66bb4e2a92e4890349fbe988fab8ad3f5ba35f3e7a17c879ed1b3b51136"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/beach-orientation-6.jpg",
      "bytes": 73697,
      "sha256": "7d27c8e2d0bff73cc47f2db978be5cbddf89231fcc2956c6d3d2199d6d749368"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/beach-rotated-untagged.jpg",
      "bytes": 72993,
      "sha256": "58d06de3a16f6fb797e4068374c16b21b1a07385a4fc14523b715a6b49860ffa"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/card-orientation-1.jpg",
      "bytes": 5979,
      "sha256": "a9653300ff5cc3348853ae0ed9c15dabcf6d493bd074c109722a0fed1d9efdb9"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/card-orientation-2.jpg",
      "bytes": 5979,
      "sha256": "20b40acf072dd5b9054ee1a20d400548e4cc3eab5b6488cdcf08f28ec7930039"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/card-orientation-3.jpg",
      "bytes": 5979,
      "sha256": "a088c6274f7ba1963cf54688a20c3541f5800db67fd274f223a6b52d21e8e099"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/card-orientation-4.jpg",
      "bytes": 5979,
      "sha256": "a2d5afa0e316797f011ce6c9ae2eca2840ac1b7ca43487cf1b2b4e1d98731bed"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/card-orientation-5.jpg",
      "bytes": 5979,
      "sha256": "9cec7d7e6dc1d9a09a99ba3e3274a01e7e875d8ebdea59acefa5ce277c94ebc9"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/card-orientation-6.jpg",
      "bytes": 5979,
      "sha256": "2a4f118d5d9947f4923df795a713df7037952c834a7fbbdb9c5336de239646ea"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/card-orientation-7.jpg",
      "bytes": 5979,
      "sha256": "24d6d23cb9a90f3a3f6bd779582d1652f88161c0da00d73c5518de4f02302157"
    },
    {
      "path": "/research/2026-11/exif-orientation-test/files/card-orientation-8.jpg",
      "bytes": 5979,
      "sha256": "3f8c7c799f739bc303ef4752bc200fb7bcfa0b3082f8e2ce339630fcfb0cca08"
    }
  ],
  "scripts": []
}
