Installer is no longer hardcoded to xhtml doctype
[mediawiki.git] / includes / media / Tiff.php
blob9d3fbb785f38c4fda9e79e2243bf53b9a4e6b197
1 <?php
2 /**
3 * @file
4 * @ingroup Media
5 */
7 /**
8 * @ingroup Media
9 */
10 class TiffHandler extends BitmapHandler {
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.
16 function canRender( $file ) {
17 global $wgTiffThumbnailType;
18 return (bool)$wgTiffThumbnailType;
21 /**
22 * Browsers don't support TIFF inline generally...
23 * For inline display, we need to convert to PNG.
25 function mustRender( $file ) {
26 return true;
29 function getThumbType( $ext, $mime ) {
30 global $wgTiffThumbnailType;
31 return $wgTiffThumbnailType;