Я нашел imageresizer и это здорово. и хороший API. Работает отлично.
Загруженный из Visual Studio 2010 Extension Manager: http://nuget.org/.
Простые шаги для загрузки API в VS-2010:
1). Установить расширение http://nuget.org/.
![enter image description here](https://i.stack.imgur.com/l7d67.jpg)
3). Найдите и установите ImageResizing
![enter image description here](https://i.stack.imgur.com/1HSPo.jpg)
4). Затем код: (Я использую обрезку здесь. Вы можете использовать любой) Документация на imageresizing.net
string uploadFolder = Server.MapPath(Request.ApplicationPath + "images/");
FileUpload1.SaveAs(uploadFolder + FileUpload1.FileName);
//The resizing settings can specify any of 30 commands.. See http://imageresizing.net for details.
ResizeSettings resizeCropSettings = new ResizeSettings("width=200&height=200&format=jpg&crop=auto");
//Generate a filename (GUIDs are safest).
string fileName = Path.Combine(uploadFolder, System.Guid.NewGuid().ToString());
//Let the image builder add the correct extension based on the output file type (which may differ).
fileName = ImageBuilder.Current.Build(uploadFolder + FileUpload1.FileName, fileName, resizeCropSettings, false, true);
Попробуйте !!! это очень удивительный и простой в использовании. спасибо.