Detect EXIF Orientation of an image in javascript
Posted
by
Obi Wan
on Stack Overflow
See other posts from Stack Overflow
or by Obi Wan
Published on 2013-10-21T15:52:18Z
Indexed on
2013/10/21
15:53 UTC
Read the original article
Hit count: 159
In my mobile web application, I have a need to examine the EXIF orientation tag of an image file selected using an input type=file control, and this needs to be done on the client side in javascript, before the selected image file gets uploaded to the server.
I have seen several threads similar to this but most of them say to use a library called binaryajax.js to be able to access the EXIF data from the file object. Unfortunately, simply including binaryajax.js in my project causes an Access Denied error in jQuery 1.7.1, and I have no idea why this is happening. This error precludes me from using this jquery library. So I am looking for a solution that does not use this library. Another library I have tried to use is jquery.exif.js and I also get an Access Denied Error Trying to use it.
© Stack Overflow or respective owner