MediaWiki  REL1_19
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 14 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 28 of file Tiff.php.

References $file, and $wgTiffThumbnailType.

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

Reimplemented from MediaHandler.

Definition at line 62 of file Tiff.php.

References $wgShowEXIF, ExifBitmapHandler\BROKEN_FILE, BitmapMetadataHandler\Tiff(), Exif\version(), and wfDebug().

Here is the call graph for this function:

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

Reimplemented from MediaHandler.

Definition at line 52 of file Tiff.php.

References $wgTiffThumbnailType.

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 42 of file Tiff.php.


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