Resize image on the fly with ASP.NET MVC

added by leniel
4/30/2012 10:18:10 AM

1 Kicks, 145 Views

I built a piece of code sometime ago to display image thumbnails in a listing page. I thought it's about time to optimize it. I refactored it and started using the WebImage class that comes in System.Web.Helpers namespace. With this class in place you can resize, crop, rotate, etc any image. There's no need to save the thumbnail in the disk, that is, a new image can be generated on the fly/dynamically and sent to the user’s browser.


0 comments