How to check if a TIFF is compressed using G4 compression [modified]
-
Can some one suggest some C++ API or code snipper to check if a TIFF file is compressed using G4 compression. -- modified at 0:44 Tuesday 26th September, 2006
Sudhir Mangla http://Programmerworld.net AND http://DevelopersVoice.com (Free books , articles , Source Code and Programming Tools and Utilities)
-
Can some one suggest some C++ API or code snipper to check if a TIFF file is compressed using G4 compression. -- modified at 0:44 Tuesday 26th September, 2006
Sudhir Mangla http://Programmerworld.net AND http://DevelopersVoice.com (Free books , articles , Source Code and Programming Tools and Utilities)
Check the compression field in the header. The following values are possible: Uncompressed 1 CCITT 1D 2 Group 3 Fax 3 Group 4 Fax 4 LZW 5 JPEG 6 PackBits 32773 Have a look at the LibTiff library. I found the spec at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf[^]
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson