Create Thumbnail Image in C#

In this blog I will show how to create thumbnail image and save it in a location in C#.

System.Drawing.Image img = System.Drawing.Image.FromFile(Server.MapPath("~/uploads/") + FileUpload1.FileName);
System.Drawing.Image thumb = img.GetThumbnailImage(160,120, null, IntPtr.Zero);
img.Dispose();
thumb.Save(Server.MapPath("~/uploads/" + FileUpload1.FileName));

Ebook Download
View all
Learn
View all