Op Mon, 17 Dec 2007 20:18:27 +1100
Tim Starling <tstarling(a)wikimedia.org> Schreef:
Daniel Kinzler wrote:
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.
yep on the uploaded picture page is the original format a tiff that if you click you can
download it but can't view it like file in jpg format also for the old version 1.8.2
* 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.
yep it looked simple but it take more to take care than i expected , i go just convert my
tiff image to png and scan my new pictures in good quality png directly
mayby i am alone with has used tiff image on the older mediawiki software
for i in image*tif ; do convert $i $i.png ; done
or something simple like's that
kris
thanks tim and the developer's team to make so good software like mediawiki , go on
please
-- Tim Starling
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/wikitech-l