Is there an easy and dynamic way to create thumbnails and resize images in MVC3/Razor? A helper, libary, anything?
It would be nice, if I somehow could manage the si
There's a library for it - it's MVC3 compatible, and it's implemented as an HttpModule, so it gets great performance.
It's also free (although some plugins require a 1-time developer or business license).
You can download it at http://imageresizing.net
Although it's tempting to just write an action for it, there are a lot of GDI bugs that you'll have to deal with, one, by one, over the years. Using a library frees you from tracking and avoiding them. Google "Image resizing pitfalls", the first result is an article that will help if you write your own decoding/resizing/encoding system.