|
MediaWiki
REL1_19
|
Handler for GIF images. More...


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' |
| GIFHandler::formatMetadata | ( | $ | image | ) |
| $image | File |
Reimplemented from MediaHandler.
Definition at line 34 of file GIF.php.
References MediaHandler\formatMetadataHelper().

| GIFHandler::getImageArea | ( | $ | image | ) |
| GIFHandler::getLongDesc | ( | $ | image | ) |
| $image | File |
Reimplemented from ImageHandler.
Definition at line 112 of file GIF.php.
References $wgLang, wfMsgExt(), wfRestoreWarnings(), and wfSuppressWarnings().

| GIFHandler::getMetadata | ( | $ | image, |
| $ | path | ||
| ) |
Get handler-specific metadata which will be saved in the img_metadata field.
| $image | File: the image object, or false if there isn't one. Warning, FSFile::getPropsFromPath might pass an (object)array() instead (!) |
| $path | String: the filename |
Reimplemented from MediaHandler.
Definition at line 18 of file GIF.php.
References BROKEN_FILE, BitmapMetadataHandler\GIF(), and wfDebug().

| GIFHandler::getMetadataType | ( | $ | image | ) |
Get a string describing the type of metadata, for display purposes.
Reimplemented from MediaHandler.
| GIFHandler::isAnimatedImage | ( | $ | image | ) |
| 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().

| const GIFHandler::BROKEN_FILE = '0' |
Definition at line 16 of file GIF.php.
Referenced by GIFHandlerTest\dataIsMetadataValid(), getMetadata(), and GIFHandlerTest\testInvalidFile().