2004.05.17 13:12 "[Tiff] Compression", by Dlpnet

2004.05.17 13:12 "[Tiff] Compression", by Dlpnet

Hello,

I m using the libTiff with the TIFFWriteScanline function:

for (cbY = 0; cbY < ima.GetHeight(); ++cbY)
{
    TIFFWriteScanline(out, (void *)ima[cbY], cbY, 0);
}

with ima my source image and ima[] each row of my image.

that s ok.

The problem is when I try to add compression. My filesize if even bigger with the PACKBIT compression and just slightly smaller with the LZW compression. (for differents images which normally can be compressed correctly)

Is it correct, do I need to change anything to get smaller file?

Thanks a lot,

Dlp