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


Public Member Functions | |
| canAnimateThumbnail ($file) | |
| We cannot animate thumbnails that are bigger than a particular size. | |
| 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::canAnimateThumbnail | ( | $ | file | ) |
We cannot animate thumbnails that are bigger than a particular size.
| File | $file |
Reimplemented from MediaHandler.
Definition at line 101 of file GIF.php.
References $file, and getImageArea().
| GIFHandler::formatMetadata | ( | $ | image | ) |
| $image | File |
Reimplemented from MediaHandler.
Definition at line 49 of file GIF.php.
References MediaHandler\formatMetadataHelper().
| GIFHandler::getImageArea | ( | $ | image | ) |
| $image | File |
Reimplemented from BitmapHandler.
Definition at line 71 of file GIF.php.
Referenced by canAnimateThumbnail().
| GIFHandler::getLongDesc | ( | $ | image | ) |
| $image | File |
Reimplemented from ImageHandler.
Definition at line 138 of file GIF.php.
References $wgLang, wfMessage(), 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 33 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 111 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 31 of file GIF.php.
Referenced by GIFHandlerTest\dataIsMetadataValid(), getMetadata(), and GIFHandlerTest\testInvalidFile().