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 }
Generic handler for bitmap images.
Handler for JPEG2000 images.
getThumbType( $ext, $mime, $params=null)
Render files as PNG.
mustRender( $file)
Not all browsers support jpeg2000.
$mime
Definition: router.php:60
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
Definition: router.php:42
if(!is_readable( $file)) $ext
Definition: router.php:48