public ActionResult GetOvalImg() { string imageFile = System.Web.HttpContext.Current.Server.MapPath("~/Content/wolf.jpg"); var srcImage = Image.FromFile(imageFile); ImageHelper helper = new ImageHelper(srcImage); Image image = helper.CreateOvalThumbnail(new Size(200, 200)); //var destImg = ImageHelper.OvalImage(image); using (var streak = new MemoryStream()) { image.Save(streak, ImageFormat.Png); return File(streak.ToArray(), "image/png"); } }