Compare Deflate and LZW on two verified TIFF pages
Admin ·
TIFF can use multiple lossless compression methods. Compare the complete file bytes and reopen the pages before choosing a new copy.
Compare both codecs on the two-page sample
Select Load example and Compress TIFF. The original file has two pages and 608 bytes. Smaller of both compares two actual encodes. In the pinned example, Deflate uses 656 bytes and LZW uses 680 bytes.
The complete TIFF grew by 48 bytes even though the chosen codec was smaller than the other option. A small fixture has little image data compared with container overhead.
| File | Bytes in the example | Compression tag |
|---|---|---|
| Original | 608 | 1 |
| Deflate | 656 | 8 |
| LZW | 680 | 5 |
LibTIFF coverage of TIFF 6.0 compression tagsAdobe TIFF Technical Notes, Deflate compression
Check both pages and their orientation
Download compressed.tiff and reopen it in a TIFF viewer. Page 1 is stored as 8 × 5 pixels. Page 2 is stored as 6 × 4 with orientation 6, which turns the displayed page.
The workspace reopens the output to verify the encoded compression, page order, stored geometry, orientation, decoded pixel signature and embedded ICC profile. Other container metadata can change.
Read the target result before saving
The built-in example uses a 500-byte target. The 656-byte result misses by 156 bytes and remains available to download. Switch Compression to LZW to choose that codec explicitly.
Use the report to decide whether recompression helps your actual TIFF. A lossless byte target can remain out of reach. Keep the original for its complete metadata and source representation.
LibTIFF coverage of TIFF 6.0 compression tagsAdobe TIFF Technical Notes, Deflate compression
Common questions
Can this handle 16-bit or CMYK TIFF?
The compressor accepts its documented interleaved 8-bit grayscale, RGB and straight-alpha RGBA pages. Other representations require a different workflow.
Does it make a ZIP containing a TIFF?
The download is a classic TIFF. Deflate applies to image data inside the TIFF container.