I have several large image files that I need to convert to different image formats. I am using the following code to do this:
using (Image img =new Bitmap(inputImageName))
{
img.Save(outputImageName, imageFormat);
}
It do the conversation, but also since the images are big, it generate outofmemory exception. I read several articles about how to overcome fragmentation of LOH, but I cannot use any of them in this case.
What Can I do?
The images are around 100MByte and it happens after opening 3 or 4 images.