blob: 9d3fbb785f38c4fda9e79e2243bf53b9a4e6b197 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
/**
* @file
* @ingroup Media
*/
/**
* @ingroup Media
*/
class TiffHandler extends BitmapHandler {
/**
* Conversion to PNG for inline display can be disabled here...
* Note scaling should work with ImageMagick, but may not with GD scaling.
*/
function canRender( $file ) {
global $wgTiffThumbnailType;
return (bool)$wgTiffThumbnailType;
}
/**
* Browsers don't support TIFF inline generally...
* For inline display, we need to convert to PNG.
*/
function mustRender( $file ) {
return true;
}
function getThumbType( $ext, $mime ) {
global $wgTiffThumbnailType;
return $wgTiffThumbnailType;
}
}
|