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 /src/PelTiff.php (line 71)
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.
Construct a new object for holding TIFF data.
The new object will be empty (with no PelIfd) unless an argument is given from which it can initialize itself. This can either be the filename of a TIFF image or a PelDataWindow object.
Use setIfd() to explicitly set the IFD.
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.
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.
Set the first IFD.
TIFF header.
This must follow after the two bytes indicating the byte order.
Documentation generated on Thu, 05 May 2011 07:19:30 +0200 by phpDocumentor 1.4.3