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
January 2009

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

2009.01.12 01:19 "Libtiff compression ratios", by <myopicwatchmaker@gmail.com>
2009.01.12 02:51 "Re: Libtiff compression ratios", by Bob Friesenhahn
2009.01.13 13:23 "Re: Libtiff compression ratios", by Gerben Vos
2009.01.12 16:50 "Re: Libtiff compression ratios", by Chris Cox
2009.01.13 21:01 "Re: Libtiff compression ratios", by <myopicwatchmaker@gmail.com>
2009.01.13 21:22 "Re: Libtiff compression ratios", by Bob Friesenhahn
2009.01.13 21:56 "Re: Libtiff compression ratios", by Toby Thain
2009.01.13 22:11 "Re: Libtiff compression ratios", by Frank Warmerdam

2009.01.12 02:51 "Re: Libtiff compression ratios", by Bob Friesenhahn

On Sun, 11 Jan 2009, myopicwatchmaker wrote:
> A typical example: I have a 30,000x6500pixel 8-bit grayscale image which,
> uncompressed occupies 174Mb on disk.  Libtiff's deflate algorithm compresses
> this down to a 66Mb file, where Photoshop produces a 48Mb file.  I save my
> images in ~8Mb strips, which appears to be the optimum for zip compression.
>
> Does anyone know why libtiff might fail to match Photoshop's compression
> rates?  Are there any paramters in libtiff or libzip that might allow
> optimization for humungous images?

These two tags could make a difference:

   TIFFTAG_PREDICTOR
       PREDICTOR_NONE
       PREDICTOR_HORIZONTAL
       PREDICTOR_FLOATINGPOINT

   TIFFTAG_ZIPQUALITY

The predictor option can arrange to re-organize the data before it is 
fed to the compressor so that the data becomes more compressable. 
PREDICTOR_HORIZONTAL should be good for continuous tone images.

The quality option specifies the compression "quality" level using 
values simlar to gzip (1-9).

I am not sure if these parameters are available for ZIP compression 
using 'tiffcp'.  The 'tiffcp' manual page does not seem to address ZIP 
compression, although it does discuss LZW.

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