Follow-up r68409: shut up PHP Strict Standards notices about "Declaration of Blah...
[lhc/web/wiklou.git] / includes / media / Tiff.php
1 <?php
2 /**
3 * @file
4 * @ingroup Media
5 */
6
7 /**
8 * @ingroup Media
9 */
10 class TiffHandler extends BitmapHandler {
11
12 /**
13 * Conversion to PNG for inline display can be disabled here...
14 * Note scaling should work with ImageMagick, but may not with GD scaling.
15 */
16 function canRender( $file ) {
17 global $wgTiffThumbnailType;
18 return (bool)$wgTiffThumbnailType;
19 }
20
21 /**
22 * Browsers don't support TIFF inline generally...
23 * For inline display, we need to convert to PNG.
24 */
25 function mustRender( $file ) {
26 return true;
27 }
28
29 function getThumbType( $ext, $mime, $params = null ) {
30 global $wgTiffThumbnailType;
31 return $wgTiffThumbnailType;
32 }
33 }