MediaWiki  REL1_22
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 35 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 64 of file XCF.php.

References getXCFMetaData().

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

Must use "im" for XCF.

Returns:
string

Reimplemented from BitmapHandler.

Definition at line 149 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 53 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

Author:
Hexmode
Hashar
Parameters:
string$filenameFull path to a XCF file
Returns:
bool|array metadata array just like PHP getimagesize()

Definition at line 78 of file XCF.php.

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

Referenced by getImageSize().

Parameters:
$file
Returns:
bool

Reimplemented from BitmapHandler.

Definition at line 41 of file XCF.php.


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