On my old server with following version of software
* MediaWiki: 1.8.2
* PHP: 5.2.2-pl1-gentoo (apache2handler)
* MySQL: 5.0.44-log
I just added to $wgFileExtensions the tif extentions i have upladed a 100 tif files no
problem
this a $wgDebugLogFile on the MediaWiki 1.8.2
wfShellExec:
'/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/bin/ulimit-tvf.sh' 30
102400 102400 '/usr/bin/convert' -background white
-size 120
'/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/images/d/d3/YinYang_symbool.tif'
-coalesce -thumbnail '120x78!' -depth 8 '
/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/images/thumb/d/d3/YinYang_symbool.tif/120px-YinYang_symbool.tif.png'
2>&1
reallyRenderThumb: running ImageMagick: '/usr/bin/convert' -background white
-size 120 '/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wik
i/images/4/40/YinYang_symbool_bw.tif' -coalesce -thumbnail '120x78!' -depth 8
'/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/images/
thumb/4/40/YinYang_symbool_bw.tif/120px-YinYang_symbool_bw.tif.png' 2>&1
so the YinYang_symbool.tif is converted to a thumnail 120px-YinYang_symbool_bw.tif.png
this a $wgDebugLogFile on the MediaWiki 1.11.0
MediaHandler::getHandler: no handler found for image/tiff.
if i add to LocalSettings.php the image/tiff line to use the Bitmap Handler
$wgMediaHandlers = array(
'image/jpeg' => 'BitmapHandler',
'image/png' => 'BitmapHandler',
'image/gif' => 'BitmapHandler',
'image/x-ms-bmp' => 'BmpHandler',
'image/svg+xml' => 'SvgHandler',
'image/svg' => 'SvgHandler',
'image/vnd.djvu' => 'DjVuHandler',
'image/tiff' => 'BitmapHandler',
);
then is there a convertion
File::transform: Doing stat for
/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/images/thumb/4/40/YinYang_symbool_bw.tif/300px-YinYang_symbool_bw.tif
BitmapHandler::doTransform: creating 300x196 thumbnail at
/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/images/thumb/4/40/YinYang_symbool_bw.tif/300px-YinYang_symbool_bw.tif
BitmapHandler::doTransform: running ImageMagick: '/usr/bin/convert' -background
white -size 300
'/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/images/4/40/YinYang_symbool_bw.tif'
-coalesce -thumbnail '300x196!' -depth 8
'/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/images/thumb/4/40/YinYang_symbool_bw.tif/300px-YinYang_symbool_bw.tif'
2>&1
wfShellExec:
'/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/bin/ulimit4.sh'
30 102400 102400 ''\''/usr/bin/convert'\'' -background white
-size 300
'\''/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/images/4/40/YinYang_symbool_bw.tif'\''
-coalesce -thumbnail '\''300x196!'\'' -depth 8
'\''/var_data/www/localhost/htdocs/taijiquan.homelinux.net/wiki/images/thumb/4/40/YinYang_symbool_bw.tif/300px-YinYang_symbool_bw.tif'\''
2>&1'
just a convertion from YinYang_symbool_bw.tif to 300px-YinYang_symbool_bw.tif
but because the code have not added .png ImageMagick convert has not converted it to png
like include/File.php lines 258 (Mediawiki 1.11.0) says :
* Currently, this checks if the file is an image format
* that can be converted to a format
* supported by all browsers (namely GIF, PNG and JPEG),
* or if it is an SVG image and SVG conversion is enabled.
so i think one of the functions that check to convert has to add .png to support the
browsers
in case it is a image/tiff to var $dstPath and $dstUrl or to $thumbPath and $thumbUrl or
just $Thumbnail in the FIle.php
but i 'm not so good in pointer variable and how to follow to the right function to
change?
that is what is see and it was in 1.8.2 working correctly without adding a extention
i just have two Extentions used in both versions EasyTimeline.php and Graphviz.php
Op Sun, 16 Dec 2007 15:28:29 +1100
Tim Starling <tstarling(a)wikimedia.org> Schreef:
Kris Coryn (Mailinglists) wrote:
Hallo wikitech-l group,
can someone here look what is going on with the tif supported code,
it doesn't convert anymore in 1.11.0 "MediaHandler::getHandler: no
handler found for image/tiff." to a png thumbnail to support the
browser
or is this corrected in the 1.12.0 code sources then i go to update
it already , i tried to find but i am not a php programmer sorry.
or what are i doing wrong ? what can i check ?
There's never been any TIFF support in the MediaWiki core. Maybe
there's an extension for it, try searching Google.
-- Tim Starling
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/wikitech-l