Here's some additonal info. It almost appears the mime types are not
being detected since "can render" never shows up
in the traces:
function canRender() {
global $wgUseImageMagick, $wgDjvuRenderer;
if( $this->getWidth()<=0 || $this->getHeight()<=0 ) return false;
$mime= $this->getMimeType();
if (!$mime || $mime==='unknown' || $mime==='unknown/unknown')
return false;
#if it's SVG, check if there's a converter enabled
if ($mime === 'image/svg') {
global $wgSVGConverters, $wgSVGConverter;
if ($wgSVGConverter && isset(
$wgSVGConverters[$wgSVGConverter])) {
wfDebug( "Image::canRender: SVG is ready!\n" );
return true;
} else {
wfDebug( "Image::canRender: SVG renderer missing\n" );
}
}
#image formats available on ALL browsers
if ( $mime === 'image/gif'
|| $mime === 'image/png'
|| $mime === 'image/jpeg' ) return true;
#image formats that can be converted to the above formats
if ($wgUseImageMagick) {
#convertable by ImageMagick (there are more...)
if ( $mime === 'image/vnd.wap.wbmp'
|| $mime === 'image/x-xbitmap'
|| $mime === 'image/x-xpixmap'
#|| $mime === 'image/x-icon' #file may be split into
multiple parts
|| $mime === 'image/x-portable-anymap'
|| $mime === 'image/x-portable-bitmap'
|| $mime === 'image/x-portable-graymap'
|| $mime === 'image/x-portable-pixmap'
#|| $mime === 'image/x-photoshop' #this takes a lot of
CPU and RAM!
|| $mime === 'image/x-rgb'
|| $mime === 'image/x-bmp'
|| $mime === 'image/tiff' ) return true;
}
else {
#convertable by the PHP GD image lib
if ( $mime === 'image/vnd.wap.wbmp'
|| $mime === 'image/x-xbitmap' ) return true;
}
if ( $mime === 'image/vnd.djvu' && isset( $wgDjvuRenderer )
&&
$wgDjvuRenderer ) return true;
return false;
}
Jeff
Jeffrey V. Merkey wrote:
Here's a trace of attempts to render svg files on
1.8.
Jeff
Main cache: FakeMemCachedClient
Message cache: MediaWikiBagOStuff
Parser cache: MediaWikiBagOStuff
Unstubbing $wgParser on call of $wgParser->setHook from chr2syl
Unstubbing $wgMessageCache on call of $wgMessageCache->addMessages from
wfCite
Unstubbing $wgContLang on call of $wgContLang->getMagic from MagicWord::load
Got localisation for chr from source
Got localisation for en from source
Fully initialised
Unstubbing $wgUser on call of $wgUser->isAllowed from Title::userCanRead
Unstubbing $wgLoadBalancer on call of $wgLoadBalancer->getConnection
from wfGetDB
LoadBalancer::getReaderIndex: Using reader #0: localhost...
Unstubbing $wgOut on call of $wgOut->setSquidMaxage from
MediaWiki::performAction
OutputPage::checkLastModified: client did not send If-Modified-Since header
IP: 127.0.0.1
fileCacheName() - /wikidump/chr/chrcache/2/21/Alabama.html
isFileCacheGood() - cachetime 20070210200904, touched 20061219110211
epoch 20070223075230, good
Article::tryFileCache(): starting buffer
Article::view using parser cache: yes
Trying parser cache chrdb:pcache:idhash:1445-0!1!0!!chr!2
Parser cache miss.
Unstubbing $wgLang on call of $wgLang->getCode from MessageCache::get
MessageCache::load(): got from global cache
img_width match: 125
img_width match: 100
makeImageLinkObj: '100'x'', "State seal of Alabama"
makeImageLinkObj: client-size set to '100 x 103'
makeImageLinkObj2: '100'x'103'
Image::getViewURL(): supposed to render Map_of_USA_AL.svg (), but can't!
makeImageLinkObj: ''x'', "Map of the United States with Alabama
highlighted"
makeImageLinkObj2: '0'x'0'
img_width match: 250
makeImageLinkObj: '250'x'', " ᎡᎶᎯ ᏓᏟᎶᏍᏔᏅ Alabama ᎬᏙᏗ ᏍᎦᏚᎩ boundaries
ᎠᏎᏒᏓ"
img_width match: 250
makeImageLinkObj: '250'x'', "Alabama ᎾᏂᎥ ᏴᏫ ᎠᏫᏒᏗ ᎡᎶᎯ ᏓᏟᎶᏍᏔᏅ"
img_width match: 300
makeImageLinkObj: '300'x'', "Map of Alabama - <a
href="http://nationalatlas.gov/printable/images/pdf/reference/pagegen_…
class="external text"
title="http://nationalatlas.gov/printable/images/pdf/reference/pagegen…
rel="nofollow">PDF</a>"
img_width match: 150
makeImageLinkObj: '150'x'', "Alabama ᎤᏤᎵ ᎩᏄᏙᏗ ᎠᏂᎶᏁᏍᎬ ᏗᎦᏃᏣᎵ ᎦᏁᎳ ᎮᎴᏂ
Keller ᎨᎳᏛᏍᏗ ᎬᏙᏗ ᎯᎠ longleaf ᏃᏥ ᎤᏩᏂᎦᎸ ᎠᎴ Camellia ᎠᏥᎸᏍᎬ ᏂᏛᎴᏅᏓ ᎯᎠ 50 ᎤᏔᏂᏗ
ᎦᏙᎯ ᎠᏂᎩᏄᏙᏗ ᎢᏯᏛᏁᏗ. ᏓᏥᏲᏒᎩ <!--LINK 209--><!--LINK 210-->."
img_width match: 25
makeImageLinkObj: '25'x'', " "
makeImageLinkObj: client-size set to '25 x 27'
makeImageLinkObj2: '25'x'27'
img_width match: 25
img_width match: 25
img_width match: 25
img_width match: 25
img_width match: 25
makeImageLinkObj: '25'x'', " "
makeImageLinkObj: client-size set to '25 x 13'
makeImageLinkObj2: '25'x'13'
img_width match: 75
img_width match: 80
Tidy error detected!
Saved in parser cache with key chrdb:pcache:idhash:1445-0!1!0!!chr!2 and
timestamp 20070223075255
OutputPage::sendCacheControl: private caching; Fri, 23 Feb 2007 07:52:30
GMT **
Request ended normally
Start request
GET /wiki/Alabama
Host:
chr.wikigadugi.org
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8)
Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Referer:
http://chr.wikigadugi.org/wiki/%E1%8F%84%E1%8E%AC%E1%8F%AB%E1%8F%B3%E1%8F%9…
Via: 1.1 c-67-177-44-96.hsd1.ut.comcast.net:80 (squid/2.5.STABLE12)
X-Forwarded-For: 67.186.225.37
Cache-Control: max-age=259200
Connection: keep-alive
Main cache: FakeMemCachedClient
Message cache: MediaWikiBagOStuff
Parser cache: MediaWikiBagOStuff
Unstubbing $wgParser on call of $wgParser->setHook from chr2syl
Unstubbing $wgMessageCache on call of $wgMessageCache->addMessages from
wfCite
Unstubbing $wgContLang on call of $wgContLang->getMagic from MagicWord::load
Got localisation for chr from source
Got localisation for en from source
Fully initialised
Unstubbing $wgUser on call of $wgUser->isAllowed from Title::userCanRead
Unstubbing $wgLoadBalancer on call of $wgLoadBalancer->getConnection
from wfGetDB
LoadBalancer::getReaderIndex: Using reader #0: localhost...
Unstubbing $wgOut on call of $wgOut->setSquidMaxage from
MediaWiki::performAction
OutputPage::checkLastModified: client did not send If-Modified-Since header
IP: 127.0.0.1
fileCacheName() - /wikidump/chr/chrcache/2/21/Alabama.html
isFileCacheGood() - cachetime 20070210200904, touched 20061219110211
epoch 20070223075230, good
Article::tryFileCache(): starting buffer
Article::view using parser cache: yes
Trying parser cache chrdb:pcache:idhash:1445-0!1!0!!chr!2
Parser cache miss.
Unstubbing $wgLang on call of $wgLang->getCode from MessageCache::get
MessageCache::load(): got from global cache
img_width match: 125
img_width match: 100
makeImageLinkObj: '100'x'', "State seal of Alabama"
makeImageLinkObj: client-size set to '100 x 103'
makeImageLinkObj2: '100'x'103'
Image::getViewURL(): supposed to render Map_of_USA_AL.svg (), but can't!
makeImageLinkObj: ''x'', "Map of the United States with Alabama
highlighted"
makeImageLinkObj2: '0'x'0'
img_width match: 250
makeImageLinkObj: '250'x'', " ᎡᎶᎯ ᏓᏟᎶᏍᏔᏅ Alabama ᎬᏙᏗ ᏍᎦᏚᎩ boundaries
ᎠᏎᏒᏓ"
img_width match: 250
makeImageLinkObj: '250'x'', "Alabama ᎾᏂᎥ ᏴᏫ ᎠᏫᏒᏗ ᎡᎶᎯ ᏓᏟᎶᏍᏔᏅ"
img_width match: 300
makeImageLinkObj: '300'x'', "Map of Alabama - <a
href="http://nationalatlas.gov/printable/images/pdf/reference/pagegen_…
class="external text"
title="http://nationalatlas.gov/printable/images/pdf/reference/pagegen…
rel="nofollow">PDF</a>"
img_width match: 150
makeImageLinkObj: '150'x'', "Alabama ᎤᏤᎵ ᎩᏄᏙᏗ ᎠᏂᎶᏁᏍᎬ ᏗᎦᏃᏣᎵ ᎦᏁᎳ ᎮᎴᏂ
Keller ᎨᎳᏛᏍᏗ ᎬᏙᏗ ᎯᎠ longleaf ᏃᏥ ᎤᏩᏂᎦᎸ ᎠᎴ Camellia ᎠᏥᎸᏍᎬ ᏂᏛᎴᏅᏓ ᎯᎠ 50 ᎤᏔᏂᏗ
ᎦᏙᎯ ᎠᏂᎩᏄᏙᏗ ᎢᏯᏛᏁᏗ. ᏓᏥᏲᏒᎩ <!--LINK 209--><!--LINK 210-->."
img_width match: 25
makeImageLinkObj: '25'x'', " "
makeImageLinkObj: client-size set to '25 x 27'
makeImageLinkObj2: '25'x'27'
img_width match: 25
img_width match: 25
img_width match: 25
img_width match: 25
img_width match: 25
makeImageLinkObj: '25'x'', " "
makeImageLinkObj: client-size set to '25 x 13'
makeImageLinkObj2: '25'x'13'
img_width match: 75
img_width match: 80
Tidy error detected!
Saved in parser cache with key chrdb:pcache:idhash:1445-0!1!0!!chr!2 and
timestamp 20070223075255
OutputPage::sendCacheControl: private caching; Fri, 23 Feb 2007 07:52:30
GMT **
Request ended normally
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/wikitech-l