* Added possibility to set short options aliases to long long options, added -h alias...
[lhc/web/wiklou.git] / includes / media / Tiff.php
1 <?php
2 /**
3 * Handler for Tiff images.
4 *
5 * @file
6 * @ingroup Media
7 */
8
9 /**
10 * Handler for Tiff images.
11 *
12 * @ingroup Media
13 */
14 class TiffHandler extends BitmapHandler {
15
16 /**
17 * Conversion to PNG for inline display can be disabled here...
18 * Note scaling should work with ImageMagick, but may not with GD scaling.
19 */
20 function canRender( $file ) {
21 global $wgTiffThumbnailType;
22 return (bool)$wgTiffThumbnailType;
23 }
24
25 /**
26 * Browsers don't support TIFF inline generally...
27 * For inline display, we need to convert to PNG.
28 */
29 function mustRender( $file ) {
30 return true;
31 }
32
33 function getThumbType( $ext, $mime, $params = null ) {
34 global $wgTiffThumbnailType;
35 return $wgTiffThumbnailType;
36 }
37 }