Author: Tales from the Evil Empire : ASP.NET | Posted on: 12/10/2009 8:30:51 PM | Views : 972

I and many others have written about resizing images using GDI+ , or rather its .NET façade, System.Drawing . It works. But there is just this one sentence at the bottom of the documentation : Caution: Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions. Kind of scary, isn't it? Nobody likes diminished performance and run-time exceptions. But when you need to generate thumbnails from managed code, what other choices do you have? There used to be two: using interop with native APIs (which won't work in medium trust) or writing...(read more) ...

Go to the complete details ...