ASP.NET Image uploading with Resizing
Once the file has been saved to the server you can use code like this to resize. This code will take care of length/width ratio on the resize. public static Bitmap CreateThumbnail(string lcFilename, int lnWidth, int lnHeight) { System.Drawing.Bitmap bmpOut = null; try { Bitmap loBMP = new Bitmap(lcFilename); ImageFormat loFormat = loBMP.RawFormat; decimal lnRatio; … Read more