MediaWiki  REL1_22
TiffHandler Class Reference

Handler for Tiff images. More...

Inheritance diagram for TiffHandler:
Collaboration diagram for TiffHandler:

List of all members.

Public Member Functions

 canRender ($file)
 Conversion to PNG for inline display can be disabled here...
 getMetadata ($image, $filename)
 getThumbType ($ext, $mime, $params=null)
 mustRender ($file)
 Browsers don't support TIFF inline generally...

Detailed Description

Handler for Tiff images.

Definition at line 29 of file Tiff.php.


Member Function Documentation

Conversion to PNG for inline display can be disabled here...

Note scaling should work with ImageMagick, but may not with GD scaling.

Files pulled from an another MediaWiki instance via ForeignAPIRepo / InstantCommons will have thumbnails managed from the remote instance, so we can skip this check.

Parameters:
$file
Returns:
bool

Reimplemented from ImageHandler.

Definition at line 43 of file Tiff.php.

References $file, and global.

TiffHandler::getMetadata ( image,
filename 
)
Parameters:
File$image
string$filename
Exceptions:
MWException
Returns:
string

Reimplemented from MediaHandler.

Definition at line 78 of file Tiff.php.

References ExifBitmapHandler\BROKEN_FILE, global, BitmapMetadataHandler\Tiff(), version, and wfDebug().

TiffHandler::getThumbType ( ext,
mime,
params = null 
)
Parameters:
$ext
$mime
$params
Returns:
bool

Reimplemented from MediaHandler.

Definition at line 67 of file Tiff.php.

References global.

Browsers don't support TIFF inline generally...

For inline display, we need to convert to PNG.

Parameters:
$file
Returns:
bool

Reimplemented from BitmapHandler.

Definition at line 57 of file Tiff.php.


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