MediaWiki  REL1_19
XCFHandler Class Reference

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

Inheritance diagram for XCFHandler:
Collaboration diagram for XCFHandler:

List of all members.

Public Member Functions

 getImageSize ($image, $filename)
 Get width and height from the XCF header.
 getThumbType ($ext, $mime, $params=null)
 Render files as PNG.
 mustRender ($file)

Static Public Member Functions

static getXCFMetaData ($filename)
 Metadata for a given XCF file.

Static Protected Member Functions

static getScalerType ($dstPath, $checkDstPath=true)
 Must use "im" for XCF.

Detailed Description

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

Definition at line 20 of file XCF.php.


Member Function Documentation

XCFHandler::getImageSize ( image,
filename 
)

Get width and height from the XCF header.

Parameters:
$image
$filename
Returns:
array

Reimplemented from ImageHandler.

Definition at line 49 of file XCF.php.

References getXCFMetaData().

Here is the call graph for this function:

static XCFHandler::getScalerType ( dstPath,
checkDstPath = true 
) [static, protected]

Must use "im" for XCF.

Returns:
string

Reimplemented from BitmapHandler.

Definition at line 134 of file XCF.php.

XCFHandler::getThumbType ( ext,
mime,
params = null 
)

Render files as PNG.

Parameters:
$ext
$mime
$params
Returns:
array

Reimplemented from MediaHandler.

Definition at line 38 of file XCF.php.

static XCFHandler::getXCFMetaData ( filename) [static]

Metadata for a given XCF file.

Will return false if file magic signature is not recognized

Author:
Hexmode
Hashar
Parameters:
$filenameString Full path to a XCF file
Returns:
false|metadata array just like PHP getimagesize()

Definition at line 63 of file XCF.php.

References $f, wfDebug(), and wfUnpack().

Referenced by getImageSize().

Here is the call graph for this function:

Here is the caller graph for this function:

Parameters:
$file
Returns:
bool

Reimplemented from BitmapHandler.

Definition at line 26 of file XCF.php.


The documentation for this class was generated from the following file: