Returns the compression type for TIFF files.




Return value


If it fails to get the compression type, it returns null.


TIFF compression type Description Supported image format
EnumTIFFCompressionType.AUTO Auto mode 1, 4, 8, 24 bit
EnumTIFFCompressionType.RLE CCITT modified Huffman RLE 1 bit
EnumTIFFCompressionType.FAX3 CCITT Group 3 fax encoding 1 bit
EnumTIFFCompressionType.T4 CCITT T.4 (TIFF 6 name) 1 bit
EnumTIFFCompressionType.FAX4 CCITT Group 4 fax encoding 1 bit
EnumTIFFCompressionType.T6 CCITT T.6 (TIFF 6 name) 1 bit
EnumTIFFCompressionType.LZW Lempel-Ziv & Welch 1, 4, 8, 24 bit
EnumTIFFCompressionType.JPEG JPEG encoding 4, 8, 24 bit
EnumTIFFCompressionType.PACKBITS Macintosh RLE 1, 4, 8, 24 bit

When an error occurs, check getErrorCode() or getErrorString() for error information.

See also


Is this page helpful?

Leave a Reply

Your email address will not be published.