I am writing a discussion board software that will have “avatar” images for the users. I want to resize any picture that gets uploaded to a reasonable size. I could easily do that with System.Drawing but that is relying on GDI+ which has hat security problems before. The problem is that the images are untrusted. So I thought of using a fully managed lib to solve that problem because managed code cannot escape the sandbox (of course it can, but only if the code is user-supplied which it is not in my case).
So does anybody know of a managed image parser library for JPEG, BMP, PNG and GIF? If some format is missing than I will have to live with that.
Edit: Paint.NET also relies on GDI+.
You might be interested in the discussion below, too.
What about VintaSoftImaging.NET? It’s a fully-managed .NET library that can resize/resample various image formats (and much more).
It’s certainly not the case that all image libraries have unmanaged code–image decoders are written in whatever language the author feels like writing them in. And some do feel like writing them in a managed language; for example, there’s also LibTiff.NET and LibJpeg.NET, both 100% managed code. Those are strictly codec libraries though, and won’t do any resizing.