AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
March 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.03.04 03:05 "LZW Compression with 16-bit TIFF", by Frank Peters
2006.03.04 03:12 "Re: LZW Compression with 16-bit TIFF", by Bob Friesenhahn
2006.03.04 03:33 "Re: LZW Compression with 16-bit TIFF", by Frank Peters
2006.03.04 06:27 "Re: LZW Compression with 16-bit TIFF", by Bob Friesenhahn
2006.03.04 12:21 "Re: LZW Compression with 16-bit TIFF", by Joris Van Damme

2006.03.04 03:12 "Re: LZW Compression with 16-bit TIFF", by Bob Friesenhahn

On Fri, 3 Mar 2006, Frank Peters wrote:
>
> With 16-bit tiff files, however, the compressed file is
> actually LARGER.  For example, using the above command
> a 36 megabyte 16-bit tiff file will "compress" to about
> 46 megabytes.  For the other possible options, "-c lzw:1"
> and "-c lzw", the results are essentially the same.  The
> compressed file is always significantly larger.
>
> If I use "-c zip" as the option, 16-bit files are reduced
> somewhat (from 36 Mb to 34 Mb).
>
> Is there possibly a bug in the 16-bit lzw code or does the
> fault lie elsewere?

16 bit data can be difficult to compress.  Have you tried enabling 
horizontal differencing?

   TIFFSetField(tiff,TIFFTAG_PREDICTOR,2);

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/