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


Public Member Functions | |
| canAnimateThumbnail ($file) | |
| We cannot animate thumbnails that are bigger than a particular size. | |
| formatMetadata ($image) | |
| getCommonMetaArray (File $image) | |
| Return the standard metadata elements for #filemetadata parser func. | |
| 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 116 of file GIF.php.
References $file, getImageArea(), and global.
| GIFHandler::formatMetadata | ( | $ | image | ) |
| File | $image |
Reimplemented from MediaHandler.
Definition at line 49 of file GIF.php.
References MediaHandler\formatMetadataHelper(), and getCommonMetaArray().
| GIFHandler::getCommonMetaArray | ( | File $ | image | ) |
Return the standard metadata elements for #filemetadata parser func.
| File | $image |
Reimplemented from MediaHandler.
Definition at line 63 of file GIF.php.
References array(), and File\getMetadata().
Referenced by formatMetadata().
| GIFHandler::getImageArea | ( | $ | image | ) |
| File | $image |
Reimplemented from ImageHandler.
Definition at line 84 of file GIF.php.
Referenced by canAnimateThumbnail().
| GIFHandler::getLongDesc | ( | $ | image | ) |
| File | $image |
Reimplemented from ImageHandler.
Definition at line 158 of file GIF.php.
References $wgLang, array(), global, wfMessage(), wfRestoreWarnings(), and wfSuppressWarnings().
| GIFHandler::getMetadata | ( | $ | image, |
| $ | path | ||
| ) |
Get handler-specific metadata which will be saved in the img_metadata field.
| File | $image | The image object, or false if there isn't one. Warning, FSFile::getPropsFromPath might pass an (object)array() instead (!) |
| string | $path | The filename |
Reimplemented from MediaHandler.
Definition at line 32 of file GIF.php.
References $e, BROKEN_FILE, BitmapMetadataHandler\GIF(), and wfDebug().
| GIFHandler::getMetadataType | ( | $ | image | ) |
Get a string describing the type of metadata, for display purposes.
| File | $image |
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).
| File | $image | |
| array | $metadata |
Reimplemented from MediaHandler.
Definition at line 127 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 30 of file GIF.php.
Referenced by getMetadata(), and GIFHandlerTest\testInvalidFile().