To load .tiff file in C#

curiosity picture curiosity · Nov 24, 2010 · Viewed 14.4k times · Source

I have to load .tiff file

I did with both Image.FromFile() and Bitmap.FromFile()

But they are throwing OutOfMemoryException

Any solution for how to load this?

Answer

Stefan Egli picture Stefan Egli · Nov 24, 2010

I assume that the TIFF file you are trying to load uses a compression that is not compatible with .Net. Namely the JPEG compression is not supported by .Net.

I suggest you try LibTiff.Net (though I cannot tell for sure if it will work):