How to convert large image files in c#
<p>I have several large image files that I need to convert to different image formats. I am using the following code to do this:</p>

<pre><code>using (Image img =new Bitmap(inputImageName))
        {
            img.Save(outputImageName, imageFormat);
        } 
</code></pre>

<p>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.</p>

<p>What Can I do? </p>

<p>The images are around 100MByte and it happens after opening 3 or 4 images.</p>
