The tiff.h lists many more compressions than Image/TIFF.pm. I hope you
strive for completeness. Otherwise, please return the value of the tag
not an empty string. Full list:
COMPRESSION_NONE 1 /* dump mode */
COMPRESSION_CCITTRLE 2 /* CCITT modified Huffman RLE
*/#define COMPRESSION_CCITTFAX3 3 /* CCITT Group 3 fax
encoding */#define COMPRESSION_CCITT_T4 3 /* CCITT T.4
(TIFF 6 name) */
COMPRESSION_CCITTFAX4 4 /* CCITT Group 4 fax encoding
*/#define COMPRESSION_CCITT_T6 4 /* CCITT T.6 (TIFF 6 name) */
COMPRESSION_LZW 5 /* Lempel-Ziv & Welch */
COMPRESSION_OJPEG 6 /* !6.0 JPEG */
COMPRESSION_JPEG 7 /* %JPEG DCT compression */
COMPRESSION_NEXT 32766 /* NeXT 2-bit RLE */
COMPRESSION_CCITTRLEW 32771 /* #1 w/ word alignment */
COMPRESSION_PACKBITS 32773 /* Macintosh RLE */
COMPRESSION_THUNDERSCAN 32809 /* ThunderScan RLE */
COMPRESSION_IT8CTPAD 32895 /* IT8 CT w/padding */
COMPRESSION_IT8LW 32896 /* IT8 Linework RLE */
COMPRESSION_IT8MP 32897 /* IT8 Monochrome picture */
COMPRESSION_IT8BL 32898 /* IT8 Binary line art */
COMPRESSION_PIXARFILM 32908 /* Pixar companded 10bit LZW */
COMPRESSION_PIXARLOG 32909 /* Pixar companded 11bit ZIP */
COMPRESSION_DEFLATE 32946 /* Deflate compression */
COMPRESSION_ADOBE_DEFLATE 8 /* Deflate compression, as
recognized by Adobe */