I have a Tiff file that comes from a scanner. It has a resolution of 300 dpi to start with. But later I need to change it to a different value, say 100.
What's the best way to do this without losing the initial compression and color depth?
I already tried opening the Tiff with Bitmap.FromFile()
, but I get an OutOfMemoryException
, also used the FreeImage library, but here, if the Tiff is grayscale, it always uses LZW compression instead of JPEG. I know LZW is better, but JPEG is mandatory for me.
The
OutOfMemoryException
is because .NET doesn't support TIFF with JPEG compression. See this answer for more.