Resizeing images in asp.net can be a little over complicated.
It should be like this....
ImageResizer.ImageResizer resizer = new ImageResizer.ImageResizer();
resizer.ResizeFromLocalServer(MapPath("/example.jpg"), new ImageResizer.ImageSize {
Height = 30,
Width = 30
});
Dim resizer As New ImageResizer.ImageResizer()
resizer.ResizeFromLocalServer(MapPath("/example.jpg"), New ImageResizer.ImageSize() With { _
.Height = 30, _
.Width = 30 _
})
The goal of this project is to make it really easy for users to resize images in their .NET applications
- Give options on weather the image should be cropped or resized smaller than the box
- Allow multiple images to be resized at once.
Resizes from a generic type of T - allowing multiple images to be resized in multiple sizes.
Multiple image resizes
Refactored code in preparation for the next build where images can be resized in multiple ways.
Breaking change - No Image Resize with just path, now we output extra information
Allows resizeing from a local computer, an image on the local server or a remote image from the web
Constrain the proportions of the image that is being resized
Allow users to resize the images just by selecting a URL on the server, and selecting the height and width.