---
title: "Discussion on \"Why Photos Show Up Rotated on Screen — Reading Exif Orientation Directly in JS\" | Hashnode"
description: "Discussion on \"Why Photos Show Up Rotated on Screen — Reading Exif Orientation Directly in JS\". Tracks down why a photo taken from input[type=file] ends up rotated depending on how it's rendered, traces it to the Exif Orientation tag, and reads that value directly from the JPEG binary using JS's ArrayBuffer and DataView before rotating the image back."
url: "https://hashnode.com/posts/exif-orientation-en/6a72458907f6ebcf1df7da0b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Photos Show Up Rotated on Screen — Reading Exif Orientation Directly in JS](https://blog-cattus.hashnode.dev/exif-orientation-en?utm_source=hashnode&utm_medium=feed)

Tracks down why a photo taken from input\[type=file\] ends up rotated depending on how it's rendered, traces it to the Exif Orientation tag, and reads that value directly from the JPEG binary using JS's ArrayBuffer and DataView before rotating the image back.

Aug 4 · 13 min read · blog-cattus.hashnode.dev  
Read the article

-   [#exif](https://hashnode.com/tag/exif)
-   [#jpeg](https://hashnode.com/tag/jpeg)
-   [#image](https://hashnode.com/tag/image)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Donghwan Kim](https://hashnode.com/@cattus-astro)

@cattus-astro · Dublin, Ireland

  
[View profile](https://hashnode.com/@cattus-astro)

Web Frontend Developer

Web Frontend Developer // Crafting Scalable Cross-Platform Web Solutions &amp; Rich User Experiences

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
