Class PelExif

Description

Class representing Exif data.

Exif data resides as data and consists of a header followed by a number of PelJpegIfd.

The interesting method in this class is getTiff() which will return the PelTiff object which really holds the data which one normally think of when talking about Exif data. This is because Exif data is stored as an extension of the TIFF file format.

Located in /src/PelExif.php (line 65)

PelJpegContent
   |
   --PelExif
Class Constant Summary
 EXIF_HEADER = "Exif\0\0"
Method Summary
PelExif __construct ()
string getBytes ()
void load (PelDataWindow $d)
void setTiff (PelTiff $tiff)
string __toString ()
Methods
Constructor __construct (line 91)

Construct a new Exif object.

The new object will be empty --- use the load() method to load Exif data from a PelDataWindow object, or use the setTiff() to change the PelTiff object, which is the true holder of the Exif entries.

PelExif __construct ()

Redefinition of:
PelJpegContent::__construct()
Make a new piece of JPEG content.
getBytes (line 157)

Produce bytes for the Exif data.

  • return: bytes representing this object.
string getBytes ()

Redefinition of:
PelJpegContent::getBytes()
Return the bytes of the content.
getTiff (line 147)

Get the underlying TIFF object.

The actual Exif data is stored in a PelTiff object, and this method provides access to it.

  • return: the TIFF object with the Exif data.
PelTiff getTiff ()
load (line 103)

Load and parse Exif data.

This will populate the object with Exif data, contained as a PelTiff object. This TIFF object can be accessed with the getTiff() method.

void load (PelDataWindow $d)
setTiff (line 134)

Change the TIFF information.

Exif data is really stored as TIFF data, and this method can be used to change this data from one PelTiff object to another.

void setTiff (PelTiff $tiff)
  • PelTiff $tiff: the new TIFF object.
__toString (line 168)

Return a string representation of this object.

  • return: a string describing this object. This is mostly useful for debugging.
string __toString ()

Inherited Methods

Inherited From PelJpegContent

PelJpegContent::__construct()
PelJpegContent::getBytes()
Class Constants
EXIF_HEADER = "Exif\0\0" (line 73)

Exif header.

The Exif data must start with these six bytes to be considered valid.

Documentation generated on Thu, 05 May 2011 07:19:10 +0200 by phpDocumentor 1.4.3