MediaWiki  master
Jpeg2000Handler.php
Go to the documentation of this file.
1 <?php
31 
38  public function mustRender( $file ) {
39  return true;
40  }
41 
50  public function getThumbType( $ext, $mime, $params = null ) {
51  return [ 'png', 'image/png' ];
52  }
53 
54 }
Jpeg2000Handler\getThumbType
getThumbType( $ext, $mime, $params=null)
Render files as PNG.
Definition: Jpeg2000Handler.php:50
$file
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
Definition: router.php:42
BitmapHandler
Generic handler for bitmap images.
Definition: BitmapHandler.php:32
Jpeg2000Handler
Handler for JPEG2000 images.
Definition: Jpeg2000Handler.php:30
Jpeg2000Handler\mustRender
mustRender( $file)
Not all browsers support jpeg2000.
Definition: Jpeg2000Handler.php:38
$ext
if(!is_readable( $file)) $ext
Definition: router.php:48
$mime
$mime
Definition: router.php:60