title: Low quality image after resizing
body: <p>Hello i'm using this function in order to resize/upload an image . There's any quick adjustment i could make in order to improve the resized image quality without changing the full function?</p>
  
  <pre><code>   FileUpload FileUpload1 =(FileUpload)ListView1.InsertItem.FindControl("FileUpload1");
                  string virtualFolder = "~/albume/";
                  string physicalFolder = Server.MapPath(virtualFolder);
                  string fileName = Guid.NewGuid().ToString();
                  string extension = System.IO.Path.GetExtension(FileUpload1.FileName);
                  FileUpload1.SaveAs(System.IO.Path.Combine(physicalFolder, fileName + extension));
                  //test resize
                  System.Drawing.Image img = System.Drawing.Image.FromFile(Server.MapPath("~/albume/") + fileName + extension);
                  int srcWidth = img.Width;
                  int srcHeight = img.Height;
                  int thumbHeight = (int)((800.0 / srcWidth) * srcHeight);
                  System.Drawing.Image thumb = img.GetThumbnailImage(800, thumbHeight, null, IntPtr.Zero);
                  img.Dispose();
                  FileUpload1.Dispose();
                  thumb.Save(Server.MapPath("~/albume/") + fileName + extension, System.Drawing.Imaging.ImageFormat.Jpeg);
  
                  //end resize
                  myAlbum.poza = fileName + extension;
  </code></pre>