{
  "id": 21527534,
  "title": "Your Downloaded Images Are Sideways: Parsing EXIF Orientation in JPEG, WebP and AVIF",
  "url": "https://urgent.news/2026/11/24/your-downloaded-images-are-sideways-parsing-exif-orientation-in-jpeg",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-24T02:26:28.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/eden_zhang/your-downloaded-images-are-sideways-parsing-exif-orientation-in-jpeg-webp-and-avif-56e2"
  },
  "original_language": "en",
  "account": "When you download an image from your phone, it is not unusual to find that it appears sideways. This is because the camera records the image in a landscape orientation, but the photographer may have intended for it to be displayed in portrait mode. The EXIF orientation field in the image file declares how the viewer should rotate the image. However, different consumers such as browsers, image viewers, and design tools may disagree about whether to apply this declaration, leading to inconsistent results. The EXIF orientation field is located in the JPEG file as a two-byte value, while in WebP and AVIF, it is represented differently. Browsers automatically apply the orientation transformation when an image is displayed, which can lead to double-rotated images if a separate rotation is applied afterwards. Therefore, it is important to understand where the EXIF orientation field lives in different file formats and how browsers handle it to avoid producing distorted images in production.",
  "summary": "Every image collector eventually ships a bug report that reads like this: \"the images I downloaded are rotated 90 degrees.\" And every developer answers it once with \"that's just how the camera saved it\", and then spends three hours discovering that it is not that simple. The pixels on disk are not rotated. The file declares a rotation. Two different consumers — your browser, your image viewer,…",
  "key_points": [
    "EXIF orientation field corrects sideways images",
    "JPEG uses two-byte value for orientation",
    "Browsers auto-rotate, causing double-rotation"
  ],
  "editors_take": "Inconsistent handling of orientation metadata across different file formats and software creates technical friction for developers who must account for varying browser behaviors to prevent distorted image displays.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}