title: How can I get .NET to save this image?
body: <p>I have <a href="http://community.mediabrowser.tv/uploads/site_1/211/20128X.jpg" rel="nofollow noreferrer">this JPEG image</a>, that opens fine in Picasa, Photoshop, web browser, etc., but in .NET it just refuses to work.</p>
  
  <pre><code> Image image = Image.FromFile(@"myimage.jpg");
   image.Save(@"myimage2.jpg");
   // ExternalException - A generic error occurred in GDI+.
  </code></pre>
  
  <p>Is there a way to recover it in .NET so I can work with it (I need to resize it), without fixing the problem at the source?</p>
  
  <p>Full exception details:</p>
  
  <pre>
  source: System.Drawing
  type: System.Runtime.InteropServices.ExternalException
  message: A generic error occurred in GDI+.
  stack trace:
  at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
     at System.Drawing.Image.Save(String filename, ImageFormat format)
     at System.Drawing.Image.Save(String filename)
     at ConsoleApplication20.Program.Main(String[] args) in C:\Users\sam\Desktop\S
  ource\ConsoleApplication20\ConsoleApplication20\Program.cs:line 16
  </pre>
  
  <p>This issue is reproducible on Windows 7.</p>