Class for handling TIFF data.
EXIF data is actually an extension of the TIFF file format. TIFF images consist of a number of Image File Directories (IFDs), each containing a number of entries. The IFDs are linked to each other --- one can get hold of the first one with the getIfd() method.
To parse a TIFF image for EXIF data one would do:
Should one have some image data of an unknown type, then the PelTiff::isValid() function is handy: it will quickly test if the data could be valid TIFF data. The PelJpeg::isValid() function does the same for JPEG images.
Located in /PelTiff.php (line 71)
Construct a new object for holding TIFF data.
The new object will be empty, containing no PelIfd. Use the setIfd() method to set the IFD explictly, or use the load() method to load TIFF data from a PelDataWindow.
Turn this object into bytes.
TIFF images can have little-endian or big-endian byte order, and so this method takes an argument specifying that.
Check if data is valid TIFF data.
This will read just enough data from the data window to determine if the data could be a valid TIFF data. This means that the check is more like a heuristic than a rigorous check.
Load TIFF data.
The data given will be parsed and an internal tree representation will be built. If the data cannot be parsed correctly, a PelInvalidDataException is thrown, explaining the problem.
Load data from a file into a TIFF object.
TIFF header.
This must follow after the two bytes indicating the byte order.
Documentation generated on Wed, 21 Jul 2004 19:13:25 +0200 by phpDocumentor 1.3.0RC3