MediaWiki REL1_40
Exif Class Reference

Class to extract and validate Exif data from jpeg (and possibly tiff) files. More...

Public Member Functions

 __construct ( $file, $byteOrder='')
 
 getData ()
 #-
 
 getFilteredData ()
 Get $this->mFilteredExifData.
 

Static Public Member Functions

static version ()
 #-
 

Detailed Description

Class to extract and validate Exif data from jpeg (and possibly tiff) files.

Definition at line 34 of file Exif.php.

Constructor & Destructor Documentation

◆ __construct()

Exif::__construct ( $file,
$byteOrder = '' )
Parameters
string$fileFilename.
string$byteOrderType of byte ordering either 'BE' (Big Endian) or 'LE' (Little Endian). Default ''.
Exceptions
MWException
Todo
FIXME: The following are broke: SubjectArea. Need to test the more obscure tags. DigitalZoomRatio = 0/0 is rejected. need to determine if that's valid. Possibly should treat 0/0 = 0. need to read exif spec on that.

Definition at line 110 of file Exif.php.

References $file, wfBaseName(), and wfWarn().

Member Function Documentation

◆ getData()

Exif::getData ( )

#-

#+

Returns
array Get $this->mRawExifData
array

Definition at line 688 of file Exif.php.

◆ getFilteredData()

Exif::getFilteredData ( )

Get $this->mFilteredExifData.

Returns
array

Definition at line 696 of file Exif.php.

◆ version()

static Exif::version ( )
static

#-

The version of the output format

Before the actual metadata information is saved in the database we strip some of it since we don't want to save things like thumbnails which usually accompany Exif data. This value gets saved in the database along with the actual Exif data, and if the version in the database doesn't equal the value returned by this function the Exif data is regenerated.

Returns
int

Definition at line 714 of file Exif.php.

Referenced by JpegHandler\getSizeAndMetadata(), TiffHandler\getSizeAndMetadata(), ExifBitmapHandler\isFileMetadataValid(), and BitmapMetadataHandler\Tiff().


The documentation for this class was generated from the following file: