title: Android Image Orientation Issue on Motorola Droid
body: <p>Our app uses the gallery pick action to grab an image from the device to upload to a new blog post.  We're seeing on the Moto Droid that images taken in portrait are being sent back to the app in landscape orientation so the image is sideways.  AFAIK this only occurs on the Droid.</p>
  
  <p>Found this via google, but we need the full size image to be uploaded in the correct orientation so the solution doesn't work for us:</p>
  
  <p><a href="http://groups.google.com/group/android-developers/browse_frm/thread/1246475fd4c3fdb6?pli=1" rel="nofollow noreferrer">http://groups.google.com/group/android-developers/browse_frm/thread/1246475fd4c3fdb6?pli=1</a></p>
  
  <p>An easy way to reproduce this is to take a picture in portrait on the Droid, then send it to yourself via Gmail.  In the email message, the image will be in landscape (sideways).  I've tested on the droid 2.1 update and the issue is still there.</p>
  
  <p>Here's some more info:</p>
  
  <p>I took a peek at the image info in photoshop, and it has this line:</p>
  
  <pre><code>&lt;tiff:Orientation&gt;1&lt;/tiff:Orientation&gt;
  </code></pre>
  
  <p>This spec (<a href="http://www.awaresystems.be/imaging/tiff/tifftags/orientation.html" rel="nofollow noreferrer">http://www.awaresystems.be/imaging/tiff/tifftags/orientation.html</a>) says that the value of 1 is:</p>
  
  <blockquote>
    <p>1 = The 0th row represents the visual
    top of the image, and the 0th column
    represents the visual left-hand side.</p>
  </blockquote>
  
  <p>In this case, isn't that incorrect?  The top of the image in my case is the right side, with the 0th row being the left side,  which I think should be a value of '5' for the tiff orientation.</p>