MediaWiki
REL1_22
|
Handler for PNG images. More...
Public Member Functions | |
canAnimateThumbnail ($image) | |
We do not support making APNG thumbnails, so always false. | |
formatMetadata ($image) | |
getLongDesc ($image) | |
getMetadata ($image, $filename) | |
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' |
PNGHandler::canAnimateThumbnail | ( | $ | image | ) |
We do not support making APNG thumbnails, so always false.
$image | File |
Reimplemented from MediaHandler.
PNGHandler::formatMetadata | ( | $ | image | ) |
$image | File |
Reimplemented from MediaHandler.
Definition at line 54 of file PNG.php.
References MediaHandler\formatMetadataHelper().
PNGHandler::getLongDesc | ( | $ | image | ) |
$image | File |
Reimplemented from ImageHandler.
Definition at line 126 of file PNG.php.
References $wgLang, array(), global, wfMessage(), wfRestoreWarnings(), and wfSuppressWarnings().
PNGHandler::getMetadata | ( | $ | image, |
$ | filename | ||
) |
File | $image | |
string | $filename |
Reimplemented from MediaHandler.
Definition at line 38 of file PNG.php.
References BROKEN_FILE, BitmapMetadataHandler\PNG(), and wfDebug().
PNGHandler::getMetadataType | ( | $ | image | ) |
Get a string describing the type of metadata, for display purposes.
Reimplemented from MediaHandler.
PNGHandler::isAnimatedImage | ( | $ | image | ) |
PNGHandler::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 98 of file PNG.php.
References MediaHandler\METADATA_BAD, MediaHandler\METADATA_COMPATIBLE, MediaHandler\METADATA_GOOD, PNGMetadataExtractor\VERSION, wfDebug(), wfRestoreWarnings(), and wfSuppressWarnings().
const PNGHandler::BROKEN_FILE = '0' |
Definition at line 31 of file PNG.php.
Referenced by getMetadata(), and PNGHandlerTest\testInvalidFile().