Image resizing while maintaining aspect ratio
Written by praveen on June 16, 2008 – 6:25 pmWhile working on one of my projects, I had a requirement to resize user uploaded images before storing them to the web server. My prime concern while resizing an image was losing the aspect ratio. Since there isn’t anything readily available in the Framework, I decided to look around and I found Rufan Redi’s blog post. I have taken that code forward and come up with a refactored C# version that could be used as part of a library. Thanks Rufan for your insightful post.
Tags: ASP.Net, C#
Posted in .Net, Tech |