title: How does the JPEG orientation feature work?
body: <p>I do have some images (<a href="http://i.kb.irrelevant.at/279939a61eec6fb0e51e434c1c6c5a6f.jpg" rel="nofollow noreferrer">example</a>) which will be displayed differently depending on the software I am using.</p>
  
  <p>When I open the image in my browser, the picture loads from the right side to the left (<a href="http://i.kb.irrelevant.at/305d16d2a5788fe2010ec7cd7b0fdf5c.jpg" rel="nofollow noreferrer">in contrast to other images which are loading from top to bottom</a>).</p>
  
  <p><strong>Browser:</strong><br>
  <img src="https://i.stack.imgur.com/6cM2i.jpg" alt="Image Browser"></p>
  
  <p>When I display the same image in an Android Application (via <code>UrlImageViewHelper</code>) the image will be displayed with an rotation of 90°.</p>
  
  <p><strong>Android:</strong><br>
  <img src="https://i.stack.imgur.com/u7zzR.jpg" alt="Image Android"></p>
  
  <p>'Normal' Images (that are loading from the top downwards) are being displayed correctly in my application.</p>
  
  <p><strong>Questions</strong></p>
  
  <ol>
  <li>Where does the browser get the information about the orientation of the image?</li>
  <li>How could I implement an Android ImageView that is aware of the original orientation of the image?</li>
  </ol>