title: Create a new image on the file system from System.Drawing.Image?
body: <p>Ok, I'm sorry, this is probably a noob question but I'm kinda stuck.</p>
  
  <p>So what I'm doing (on my asp.net application) is loading an image from the file system:</p>
  
  <pre><code>System.Drawing.Image tempImage;
  tempImage = System.Drawing.Image.FromFile(HttpContext.Server.MapPath(originalPath));
  </code></pre>
  
  <p>Then I do some resizing:</p>
  
  <pre><code>tempImage = my awesomeResizingFunction(tempImage, newSize);
  </code></pre>
  
  <p>and intend to save it to the file system in another location using this:</p>
  
  <pre><code>string newPath = "/myAwesomePath/newImageName.jpg";
  tempImage.Save(newPath);
  </code></pre>
  
  <p>and what I get is this error:</p>
  
  <pre><code>"A generic error occurred in GDI+."
  </code></pre>
  
  <p>I know the image is "ok" because I can write it out to the browser and see the resized image, I only get the error when I try to save it. I'm kinda new and stuck, am I doing this totally wrong? (Well, i guess that's obvious but you know what I mean...)</p>