48 return [
'png',
'image/png' ];
59 $f = fopen( $filename,
'rb' );
74 }
catch ( Exception $e ) {
78 return [ $w[1], $h[1] ];
wfUnpack( $format, $data, $length=false)
Wrapper around php's unpack.
Generic handler for bitmap images.
Handler for Microsoft's bitmap format; getimagesize() doesn't support these files.
getImageSize( $image, $filename)
Get width and height from the bmp header.
getThumbType( $ext, $mime, $params=null)
Render files as PNG.
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
if(!is_readable( $file)) $ext