hello friends ...
I am Uploading single Image And That image i convert in different Size Because That Image I want in 5 different Size But The Problem Is Some Images Are Crop And Padding That I Want To Avoid .....So How To Avoid It ...This All I am Doing Using Asp.Net Mvc ..
public static string UploadFile(HttpPostedFileBase file, string file_Name, int height, int width)
{
var path = Path.Combine(HttpContext.Current.Request.MapPath(UploadPath), file_Name);
file.SaveAs(path);
ResizeSettings resizeSetting = new ResizeSettings
{
Width = width,
Height = height,
Mode = FitMode.Crop,
Quality = 90
};
ImageBuilder.Current.Build(file, path, resizeSetting);
return file_Name;
}