|
MediaWiki
REL1_24
|
Handler for the Gimp's native file format; getimagesize() doesn't support these files. More...


Public Member Functions | |
| canRender ($file) | |
| Can we render this file? | |
| getImageSize ($image, $filename) | |
| Get width and height from the XCF header. | |
| getMetadata ($file, $filename) | |
| Store the channel type. | |
| getThumbType ($ext, $mime, $params=null) | |
| Render files as PNG. | |
| isMetadataValid ($file, $metadata) | |
| Should we refresh the metadata. | |
| mustRender ($file) | |
Static Public Member Functions | |
| static | getXCFMetaData ($filename) |
| Metadata for a given XCF file. | |
Protected Member Functions | |
| getScalerType ($dstPath, $checkDstPath=true) | |
| Must use "im" for XCF. | |
Handler for the Gimp's native file format; getimagesize() doesn't support these files.
| XCFHandler::canRender | ( | $ | file | ) |
Can we render this file?
Image magick doesn't support indexed xcf files as of current writing (as of 6.8.9-3)
| File | $file |
Reimplemented from ImageHandler.
Definition at line 224 of file XCF.php.
References $file, wfRestoreWarnings(), and wfSuppressWarnings().
| XCFHandler::getImageSize | ( | $ | image, |
| $ | filename | ||
| ) |
Get width and height from the XCF header.
| File | $image | |
| string | $filename |
Reimplemented from ImageHandler.
Definition at line 63 of file XCF.php.
References array(), color, and getXCFMetaData().
| XCFHandler::getMetadata | ( | $ | file, |
| $ | filename | ||
| ) |
Store the channel type.
Greyscale files need different command line options.
| File | $file | The image object, or false if there isn't one. Warning, FSFile::getPropsFromPath might pass an (object)array() instead (!) |
| string | $filename | The filename |
Reimplemented from MediaHandler.
Definition at line 161 of file XCF.php.
References array().
| XCFHandler::getScalerType | ( | $ | dstPath, |
| $ | checkDstPath = true |
||
| ) | [protected] |
Must use "im" for XCF.
| string | $dstPath | |
| bool | $checkDstPath |
Reimplemented from BitmapHandler.
| XCFHandler::getThumbType | ( | $ | ext, |
| $ | mime, | ||
| $ | params = null |
||
| ) |
Render files as PNG.
| string | $ext | |
| string | $mime | |
| array | $params |
Reimplemented from MediaHandler.
Definition at line 52 of file XCF.php.
References array().
| static XCFHandler::getXCFMetaData | ( | $ | filename | ) | [static] |
Metadata for a given XCF file.
Will return false if file magic signature is not recognized
| string | $filename | Full path to a XCF file |
Definition at line 98 of file XCF.php.
References $f, wfDebug(), and wfUnpack().
Referenced by getImageSize().
| XCFHandler::isMetadataValid | ( | $ | file, |
| $ | metadata | ||
| ) |
Should we refresh the metadata.
| File | $file | The file object for the file in question |
| string | $metadata | Serialized metadata |
Reimplemented from MediaHandler.
Definition at line 196 of file XCF.php.
References MediaHandler\METADATA_BAD, and MediaHandler\METADATA_GOOD.
| XCFHandler::mustRender | ( | $ | file | ) |