Class PelExif

Description

Class representing EXIF data.

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

Located in /PelExif.php (line 59)

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 85)

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 152)

Produce bytes for this object.

  • return: bytes representing this object. These bytes will match the bytes given to the constructor.
string getBytes ()

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

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 97)

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 128)

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 163)

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()
 PelJpegContent::getSize()
Class Constants
EXIF_HEADER = "Exif\0\0" (line 67)

EXIF header.

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

SourceForge.net Logo Documentation generated on Wed, 21 Jul 2004 19:13:08 +0200 by phpDocumentor 1.3.0RC3