AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2009.01.12 01:19 "[Tiff] Libtiff compression ratios", by myopicwatchmaker
2009.01.12 02:51 "Re: [Tiff] Libtiff compression ratios", by Bob Friesenhahn
2009.01.13 13:23 "Re: [Tiff] Libtiff compression ratios", by Gerben Vos
2009.01.12 16:50 "Re: [Tiff] Libtiff compression ratios", by Chris Cox
2009.01.13 21:01 "Re: [Tiff] Libtiff compression ratios", by Nick
2009.01.13 21:22 "Re: [Tiff] Libtiff compression ratios", by Bob Friesenhahn
2009.01.13 21:56 "Re: [Tiff] Libtiff compression ratios", by Toby Thain
2009.01.13 22:11 "Re: [Tiff] Libtiff compression ratios", by Frank Warmerdam

2009.01.12 01:19 "[Tiff] Libtiff compression ratios", by myopicwatchmaker

Hi All,

As part of my doctoral thesis work, I produce two and a half terapixels of grayscale images a month. As you might imagine, I am eager to minimize the storage requirements for this data. Libtiff's support for deflate compression has served me quite well up until this point.

Recently I noticed that with identical compression settings, Adobe Photoshop CS2 achieves significantly higher compression ratios than my libtiff code--producing files that are almost 40% smaller in many cases.

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?

Thanks for any input.
Nick