MediaWiki
REL1_24
|
Handler for Tiff images. More...
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 |
TiffHandler::canRender | ( | $ | file | ) |
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.
File | $file |
Reimplemented from ImageHandler.
TiffHandler::getMetadata | ( | $ | image, |
$ | filename | ||
) |
File | $image | |
string | $filename |
MWException |
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 |
||
) |
string | $ext | |
string | $mime | |
array | $params |
Reimplemented from MediaHandler.
Definition at line 67 of file Tiff.php.
References global.
TiffHandler::isExpensiveToThumbnail | ( | $ | file | ) |
True if creating thumbnails from the file is large or otherwise resource-intensive.
File | $file |
Reimplemented from MediaHandler.
Definition at line 103 of file Tiff.php.
References $file, and EXPENSIVE_SIZE_LIMIT.
TiffHandler::mustRender | ( | $ | file | ) |
Browsers don't support TIFF inline generally...
For inline display, we need to convert to PNG.
File | $file |
Reimplemented from TransformationalImageHandler.
const TiffHandler::EXPENSIVE_SIZE_LIMIT = 10485760 |
Definition at line 30 of file Tiff.php.
Referenced by isExpensiveToThumbnail().