Resize and crop ASP.NET images

I'm looking for ASP.NET Image Resizing, Cropping
is good for resizing, cropping , etc. Anyone know please share

Thankx in advance

+5
source share
3 answers

Well, experts !!! Last day I found http://www.imageresizing.net/ and its excellent. and a good API. It works great. Downloaded from Visual Studio 2010 Extension Manager: http://nuget.org/ .

Easy steps to load the API in VS-2010:

< > 1). http://nuget.org/.

enter image description here

< > 3). ImageResizing
enter image description here

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);

!!! awsumm . .

+9

: # - : , . , , , , PNG, JPG, GIF. , . ( ) .

0
0

All Articles