Question: We're using `FileReader` to get an image, from a photo taken on an iPhone, into the browser. We then use `drawImage()` to draw that image onto a `canvas`. The problem is that photos taken on an iPhone display rotated on the page. We can't reproduce this on any Android devices.

We can rotate the image on the `canvas` easily enough but how can we determine the required rotation? We tried some EXIF-reading libraries for JavaScript ([exif.js](https://github.com/jseidelin/exif-js)) but were unable to successfully read the orientation.

Answer: 
Works great even without binaryajax.js

Just use 

```
EXIF.getData(changeEvent.target.files[0], function () {
    alert(EXIF.pretty(this));                            
});

```

Also [here](https://github.com/jseidelin/exif-js/blob/master/example/index.html) you could see another examples.
Or if you just want the Orientation tag:

```
EXIF.getData(file, function () {
    alert(this.exifdata.Orientation);
});

```