360 Views
Here is how to implement an image resizing technique in an ASP.NET MVC controller. The resizing techniques are implemented in different action methods in an ASP.NET MVC controller. These action methods receive the width and height of the destination image as their parameters. I can set up my routing to handle this controller, called ImageResizeController. Click read article to see the code.
2 comments
vijayst
8/28/2011 11:33:23 PM
It is a well written article on how to save images. It will be interesting to know the various image properties used like Interpolation Mode, Smoothing Mode, Pixel Offset Mode, Compositing Quality. Also, it will be nice to know how setting the Encoder Quality helps in improving the image quality.
dpeterson
8/29/2011 3:33:54 PM
Well one thing I'm noticing is that the quality comes from the bicubic resampling method, and that the result is not being saved off somewhere for later use. I can't imagine that the disk space is more expensive than the processor time required to resample the images using bicubic resampling on every request ;-)