MediaWiki  REL1_24
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)
 isExpensiveToThumbnail ($file)
 True if creating thumbnails from the file is large or otherwise resource-intensive.
 mustRender ($file)
 Browsers don't support TIFF inline generally...

Public Attributes

const EXPENSIVE_SIZE_LIMIT = 10485760

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

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

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

Reimplemented from MediaHandler.

Definition at line 67 of file Tiff.php.

References global.

True if creating thumbnails from the file is large or otherwise resource-intensive.

Parameters:
File$file
Returns:
bool

Reimplemented from MediaHandler.

Definition at line 103 of file Tiff.php.

References $file, and EXPENSIVE_SIZE_LIMIT.

Browsers don't support TIFF inline generally...

For inline display, we need to convert to PNG.

Parameters:
File$file
Returns:
bool

Reimplemented from TransformationalImageHandler.

Definition at line 57 of file Tiff.php.


Member Data Documentation

Definition at line 30 of file Tiff.php.

Referenced by isExpensiveToThumbnail().


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