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


Public Member Functions | |
| 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::formatMetadata | ( | $ | image | ) |
| $image | File |
Reimplemented from MediaHandler.
Definition at line 39 of file PNG.php.
References MediaHandler\formatMetadataHelper().

| PNGHandler::getLongDesc | ( | $ | image | ) |
| $image | File |
Reimplemented from ImageHandler.
Definition at line 101 of file PNG.php.
References $wgLang, wfMsgExt(), wfRestoreWarnings(), and wfSuppressWarnings().

| PNGHandler::getMetadata | ( | $ | image, |
| $ | filename | ||
| ) |
| File | $image | |
| string | $filename |
Reimplemented from MediaHandler.
Definition at line 23 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 73 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 16 of file PNG.php.
Referenced by PNGHandlerTest\dataIsMetadataValid(), getMetadata(), and PNGHandlerTest\testInvalidFile().