MediaWiki  REL1_19
GIFHandler Class Reference

Handler for GIF images. More...

Inheritance diagram for GIFHandler:
Collaboration diagram for GIFHandler:

List of all members.

Public Member Functions

 formatMetadata ($image)
 getImageArea ($image)
 getLongDesc ($image)
 getMetadata ($image, $filename)
 Get handler-specific metadata which will be saved in the img_metadata field.
 getMetadataType ($image)
 Get a string describing the type of metadata, for display purposes.
 isAnimatedImage ($image)
 isMetadataValid ($image, $metadata)
 Check if the metadata string is valid for this handler.

Public Attributes

const BROKEN_FILE = '0'

Detailed Description

Handler for GIF images.

Definition at line 14 of file GIF.php.


Member Function Documentation

Parameters:
$imageFile
Returns:
array|bool

Reimplemented from MediaHandler.

Definition at line 34 of file GIF.php.

References MediaHandler\formatMetadataHelper().

Here is the call graph for this function:

Parameters:
$imageFile
Todo:
unittests
Returns:
bool

Reimplemented from BitmapHandler.

Definition at line 56 of file GIF.php.

Parameters:
$imageFile
Returns:
string

Reimplemented from ImageHandler.

Definition at line 112 of file GIF.php.

References $wgLang, wfMsgExt(), wfRestoreWarnings(), and wfSuppressWarnings().

Here is the call graph for this function:

GIFHandler::getMetadata ( image,
path 
)

Get handler-specific metadata which will be saved in the img_metadata field.

Parameters:
$imageFile: the image object, or false if there isn't one. Warning, FSFile::getPropsFromPath might pass an (object)array() instead (!)
$pathString: the filename
Returns:
String

Reimplemented from MediaHandler.

Definition at line 18 of file GIF.php.

References BROKEN_FILE, BitmapMetadataHandler\GIF(), and wfDebug().

Here is the call graph for this function:

Get a string describing the type of metadata, for display purposes.

Returns:
string

Reimplemented from MediaHandler.

Definition at line 81 of file GIF.php.

Parameters:
$imageFile
Returns:
bool

Reimplemented from ImageHandler.

Definition at line 70 of file GIF.php.

GIFHandler::isMetadataValid ( image,
metadata 
)

Check if the metadata string is valid for this handler.

If it returns MediaHandler::METADATA_BAD (or false), Image will reload the metadata from the file and update the database. MediaHandler::METADATA_GOOD for if the metadata is a-ok, MediaHanlder::METADATA_COMPATIBLE if metadata is old but backwards compatible (which may or may not trigger a metadata reload).

Reimplemented from MediaHandler.

Definition at line 85 of file GIF.php.

References MediaHandler\METADATA_BAD, MediaHandler\METADATA_COMPATIBLE, MediaHandler\METADATA_GOOD, GIFMetadataExtractor\VERSION, wfDebug(), wfRestoreWarnings(), and wfSuppressWarnings().

Here is the call graph for this function:


Member Data Documentation


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