Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To load .tiff file in C#

Tags:

c#

tiff

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?

like image 729
curiosity Avatar asked Nov 24 '10 09:11

curiosity


2 Answers

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):

like image 113
Stefan Egli Avatar answered Sep 30 '22 19:09

Stefan Egli


I use ImageGlue. It can convert a lot more then just tiff.

like image 28
Kimtho6 Avatar answered Sep 30 '22 20:09

Kimtho6