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


Public Member Functions | |
| canAnimateThumbnail ($image) | |
| We do not support making APNG thumbnails, so always false. | |
| formatMetadata ($image) | |
| getCommonMetaArray (File $image) | |
| Get a file type independent array of metadata. | |
| 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.
| File | $image |
Reimplemented from MediaHandler.
| PNGHandler::formatMetadata | ( | $ | image | ) |
| File | $image |
Reimplemented from MediaHandler.
Definition at line 54 of file PNG.php.
References MediaHandler\formatMetadataHelper(), and getCommonMetaArray().
| PNGHandler::getCommonMetaArray | ( | File $ | image | ) |
Get a file type independent array of metadata.
| File | $image |
Reimplemented from MediaHandler.
Definition at line 69 of file PNG.php.
References array(), and File\getMetadata().
Referenced by formatMetadata().
| PNGHandler::getLongDesc | ( | $ | image | ) |
| File | $image |
Reimplemented from ImageHandler.
Definition at line 145 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 37 of file PNG.php.
References $e, BROKEN_FILE, BitmapMetadataHandler\PNG(), and wfDebug().
| PNGHandler::getMetadataType | ( | $ | image | ) |
Get a string describing the type of metadata, for display purposes.
| File | $image |
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).
| File | $image | |
| array | $metadata |
Reimplemented from MediaHandler.
Definition at line 113 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 30 of file PNG.php.
Referenced by getMetadata(), and PNGHandlerTest\testInvalidFile().