Hi all,
I am trying resize an image using the following code.
//resize image
System.Drawing.Image ImageUpload =
System.Drawing.Image.FromFile(String.Concat(Server .MapPath(FilePath),ImageName));
// create the actual thumbnail image
System.Drawing.Image ThumbnailImage =
ImageUpload.GetThumbnailImage(250,ImageUpload.Heig ht * 250 /
ImageUpload.Width, new
System.Drawing.Image.GetThumbnailImageAbort(Thumbn ailCallback),
IntPtr.Zero);
ThumbnailImage.Save(ImageName)); //ie: test.jpg
However i keep getting this error:
Exception Details: System.Runtime.InteropServices.ExternalException: A
generic error occurred in GDI+.
Any one have any ideas?
Cheers,
Adam