Hoping someone can help im having a real issue with resaving an image (after I get the crop area from a jquery control). I get a GDI error and when I run handle.exe on the file it is open with the w3wp.exe.
I have 2 methods (1 that saves images when they have been uploaded and one that is meant to open and resave the image with new dimensions [for cropping]).
protected void btnCrop_Click(object sender, EventArgs e)
string profilePicFilePath = Server.MapPath("~/AppWide/User/Profile_Pics/" + userForPage.ProfilePicFilePath + "_temp" + ".jpg");
//1) Load up image into memory
Bitmap tempImage = new Bitmap(profilePicFilePath);
Rectangle r = new Rectangle(Int32.Parse(x.Value), Int32.Parse(y.Value), Int32.Parse(w.Value), Int32.Parse(h.Value));
System.Drawing.Image permImageToSave = cropImage(tempImage, r);
//2) Resize image in memory using co-ordinates from boxes
//3) Save the new image over the top of the old image
//only allows uploading of .bmp, .jpg and .gif
protected void ccMediaUploader_FileUploaded(object sender, UploaderEventArgs args)
//first get th
View Complete Post