but i 'm not so good in pointer variable and how
to follow to the
right function to change?
Like this:
class TiffHandler extends BitmapHandler {
function getThumbType( $ext, $mime ) {
return array( 'png', 'image/png' );
}
}
$wgMediaHandlers['image/tiff'] = 'TiffHandler';
Perhaps this could be called BitmapAsPngHanlder and be included in the core? It
could be used for any image format ImageMagic can deal with. Hm, since it can
(maybe) even work for stuff like PS and WMF, it could even be called
ImageAsPngHandler.
There are a few minor problems with this:
* It would break horribly if someone tried to use it in GD or client-side
scaling mode.
* It needs mustRender() if it's going to work properly. Otherwise it'll
sometimes produce img tags which link directly to the source file. The
OP's MW 1.8 hack would have done this too.
* The source image size messages are bitmap-specific and need to be
overridden for other types of images.
* There's no support for metadata.
* A TIFF handler should properly be multi-page, like DjVu.
Good enough for Kris Coryn perhaps, but not good enough for the core.
-- Tim Starling