title: 90 degree image rotation and reset EXIF rotation
body: <p>I have code to batch resize digital photos.</p>
  
  <p>Some photos are taken in portrait orientation.</p>
  
  <p>For the photos in portrait orientation, I have to rotate them.</p>
  
  <p>I am using the following C# code to rotate the photo:</p>
  
  <pre><code>bmpOrig.RotateFlip(System.Drawing.RotateFlipType.Rotate90FlipNone);
  bmpOrig.Save(filename, ImageFormat.Jpeg);
  </code></pre>
  
  <p>It works fine (displays the way I want in a web browser).</p>
  
  <p>However, if I view the new image in Photoshop (and HP photo viewer) it displays rotated.</p>
  
  <p>I have done a lot of research and I believe there is EXIF data that flags the image is rotated.</p>
  
  <p><strong>My question is: How do I reset this EXIF data to indicate that the image does not need to be rotated?</strong></p>
  
  <p>I'm developing in VS 2010.</p>
  
  <p>Thanks</p>