26742674246bc3a50f6c4478410b99c8e1693fcb
3 * Handler for Tiff images.
10 * Handler for Tiff images.
14 class TiffHandler
extends ExifBitmapHandler
{
17 * Conversion to PNG for inline display can be disabled here...
18 * Note scaling should work with ImageMagick, but may not with GD scaling.
24 function canRender( $file ) {
25 global $wgTiffThumbnailType;
26 return (bool)$wgTiffThumbnailType;
30 * Browsers don't support TIFF inline generally...
31 * For inline display, we need to convert to PNG.
37 function mustRender( $file ) {
47 function getThumbType( $ext, $mime, $params = null ) {
48 global $wgTiffThumbnailType;
49 return $wgTiffThumbnailType;
57 function getMetadata( $image, $filename ) {
59 if ( $wgShowEXIF && file_exists( $filename ) ) {
60 $exif = new Exif( $filename );
61 $data = $exif->getFilteredData();
63 $data['MEDIAWIKI_EXIF_VERSION'] = Exif
::version();
64 return serialize( $data );
66 return ExifBitmapHandler
::BROKEN_FILE
;