summaryrefslogtreecommitdiff
path: root/includes/media/BMP.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/media/BMP.php')
-rw-r--r--includes/media/BMP.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/media/BMP.php b/includes/media/BMP.php
index ce1b0362..39b29744 100644
--- a/includes/media/BMP.php
+++ b/includes/media/BMP.php
@@ -11,6 +11,15 @@
* @ingroup Media
*/
class BmpHandler extends BitmapHandler {
+ // We never want to use .bmp in an <img/> tag
+ function mustRender( $file ) {
+ return true;
+ }
+
+ // Render files as PNG
+ function getThumbType( $text, $mime ) {
+ return array( 'png', 'image/png' );
+ }
/*
* Get width and height from the bmp header.