title: Accessing JPEG EXIF rotation data in JavaScript on the client side
body: <p>I'd like to rotate photos based on their original rotation, as set by the camera in JPEG EXIF image data. The trick is that all this should happen in the browser, using JavaScript and <code>&lt;canvas&gt;</code>.</p>
  
  <p>How could JavaScript access JPEG, a local file API object, local <code>&lt;img&gt;</code> or remote <code>&lt;img&gt;</code>, EXIF data to read the rotation information?</p>
  
  <p>Server-side answers are not OK; I am looking for <strong>a client-side</strong> solution. </p>