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.
dpi
(dots per inch) is related to output, not pixels (and is frequently misused like this). The term you want when working strictly with an image isppi
(pixels per inch). Second, JPEG by definition is lossy whereas LZW is not. (Though there is a lossless JPEG standard.) Third, changing the number of pixels in an image is termedresampling
and when reducing the ppi of an image, you will always lose detail. - JYelton