----- Original Message ----
> From: Volker Haas <[EMAIL PROTECTED]>
> Richard Ash wrote:
> > Now that mediawiki has SVG image support built in (it renders them to PNG
> > for
> browsers that can't read SVG graphics), is there support in mwlib? At the
> moment
> I get an warning:
> > rlwriter.warning >> img can not be opened by PIL
> > for each SVG image in the page, and no images in the rendered PDF.
> >
> Hi Richard,
> how did you configure your MediaWiki to make it return svg images? I
> checked on en.labs.wikimedia.org, en.wikipedia.org and they all return
> png images (if images are fetched via mwapidb). Is your wiki publicly
> accessible - that would make testing easier for me ;)
Sorry, I didn't mean that it actually returned SVG images to the web browser,
but that I'm uploading SVG images to the server and it is rendering them to PNG
(with imagemagick as it happens). It isn't a public wiki (it's a knowlege base
for a work project), but it's running MediaWiki: 1.11., PHP: 5.1.6
(apache2handler), MySQL: 5.0.45 on Centos 5. The reason I assumed that the
problem was with SVG and PIL was the error messages
2008-10-15T11:46:19 rlwriter.warning >> img can not be opened by PIL
that used to show up in the mw-render log file each time I rendered an article
with SVG in it.
> Anyways I am going to convert svg images to png, since that makes the
> image handling easier. The problem are inline images that reside inside
> a paragraph - reportlab can't handle svg images there.
I think this might be more related to what I was seeing, depending on what you
mean by inside a paragraph. I'm still getting errors using today's versions of
all components, and no images in the output document. A JPG image on the same
page renders correctly.
Richard
<wikitext of page>
The Receiver Board is installed in the [[Modem Cabinet]] and forms the receive
half of the [[HF Modem]] link from the [[Electronics Rack]].
== Modifications ==
=== Surge Protection ===
The receiver boards are prone to damage, and cause a significant proportion of
outstation failures, especially those that occur when there is lightning
activity in the vicinity of the outstation. This is believed to be caused when
lightning strike the phone line to the outstation, and the surge travels
through the modem into the outstation equipment. To try and reduce this
problem, TranZorb transient suppressors have been included in the newer batch
of receiver boards. They have also been retrofitted onto older cards as shown
in the diagram below.
[[Image:ReceiverBoardProtection.svg|frame|left|Protection Circuit]]
[[Image:IMG 0110.JPG|thumb|none|Random picture of Churton for testing]]
[[Category: Hardware Documentation]]
[[Category:Outstation Documentation]]
<end of wikitext>
<mw-render.log contents>
sh: texvc: command not found
sh: blahtexml: command not found
STATUS: parsing
PROGRESS: 1%
2008-10-31T12:37:39 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?action=query&meta=siteinfo&format=json'
2008-10-31T12:37:40 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?action=query&meta=siteinfo&format=json' (249B
in 0.78s)
2008-10-31T12:37:40 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?redirects=1&titles=MediaWiki:PDF+Template+Blacklist&format=json&action=query&rvprop=content&prop=revisions'
2008-10-31T12:37:41 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?redirects=1&titles=MediaWiki:PDF+Template+Blacklist&format=json&action=query&rvprop=content&prop=revisions'
(91B in 0.55s)
2008-10-31T12:37:41 mwapidb.error >> Could not get template blacklist article
'MediaWiki:PDF Template Blacklist'
2008-10-31T12:37:41 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?action=query&meta=siteinfo&siprop=interwikimap&format=json'
2008-10-31T12:37:43 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?action=query&meta=siteinfo&siprop=interwikimap&format=json'
(13391B in 2.00s)
2008-10-31T12:37:43 mwapidb.warn >> Long request: HTTP request took 2.005157 s
2008-10-31T12:37:43 parser.info >> Parsing "u'License'"
STATUS: fetching articles
2008-10-31T12:37:43 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?redirects=1&titles=Receiver+Board&format=json&action=query&rvprop=content&prop=revisions'
2008-10-31T12:37:43 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?redirects=1&titles=Receiver+Board&format=json&action=query&rvprop=content&prop=revisions'
(1063B in 0.55s)
2008-10-31T12:37:43 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?format=json&rvprop=user|flags|comment&prop=revisions&rvdir=older&redirets=1&titles=Receiver+Board&rvlimit=500&action=query'
2008-10-31T12:37:44 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?format=json&rvprop=user|flags|comment&prop=revisions&rvdir=older&redirets=1&titles=Receiver+Board&rvlimit=500&action=query'
(87B in 0.50s)
2008-10-31T12:37:44 mwapidb.error >> Response from api.php did not contain a
query result
2008-10-31T12:37:44 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?format=json&rvprop=user|flags|comment&prop=revisions&rvdir=older&redirets=1&titles=Receiver+Board&rvlimit=50&action=query'
2008-10-31T12:37:45 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?format=json&rvprop=user|flags|comment&prop=revisions&rvdir=older&redirets=1&titles=Receiver+Board&rvlimit=50&action=query'
(488B in 1.25s)
PROGRESS: 23%
STATUS: fetching templates
PROGRESS: 35%
STATUS: fetching images
2008-10-31T12:37:45 parser.info >> Parsing "u'Receiver Board'"
2008-10-31T12:37:46 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?titles=Image:ReceiverBoardProtection.svg&format=json&action=query&iiurlwidth=800&iiprop=url&prop=imageinfo'
2008-10-31T12:37:46 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?titles=Image:IMG+0110.JPG&format=json&action=query&iiurlwidth=800&iiprop=url&prop=imageinfo'
2008-10-31T12:37:47 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?titles=Image:ReceiverBoardProtection.svg&format=json&action=query&iiurlwidth=800&iiprop=url&prop=imageinfo'
(192B in 0.74s)
2008-10-31T12:37:47 mwlib.utils.info >> fetching
u'https://domain:port/wiki/images/5/54/ReceiverBoardProtection.svg'
2008-10-31T12:37:47 mwlib.utils.info >> got
u'https://domain:port/wiki/images/5/54/ReceiverBoardProtection.svg' (28918B in
0.31s)
2008-10-31T12:37:47 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?action=query&titles=Image:ReceiverBoardProtection.svg&iiprop=url&prop=imageinfo&format=json'
2008-10-31T12:37:48 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?action=query&titles=Image:ReceiverBoardProtection.svg&iiprop=url&prop=imageinfo&format=json'
(192B in 0.63s)
2008-10-31T12:37:48 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?redirects=1&titles=Image:ReceiverBoardProtection.svg&format=json&action=query&rvprop=content&prop=revisions'
2008-10-31T12:37:48 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?redirects=1&titles=Image:ReceiverBoardProtection.svg&format=json&action=query&rvprop=content&prop=revisions'
(173B in 0.58s)
2008-10-31T12:37:48 mwlib.utils.info >> fetching
'https://domain:port/w/api.php?action=query&meta=siteinfo&format=json'
2008-10-31T12:37:49 mwlib.utils.error >> HTTP Error 404: Not Found - while
fetching 'https://domain:port/w/api.php?action=query&meta=siteinfo&format=json'
2008-10-31T12:37:49 mwapidb.warn >> Fetching failed. Trying again.
2008-10-31T12:37:49 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?titles=Image:IMG+0110.JPG&format=json&action=query&iiurlwidth=800&iiprop=url&prop=imageinfo'
(164B in 2.91s)
2008-10-31T12:37:49 mwapidb.warn >> Long request: HTTP request took 2.915407 s
2008-10-31T12:37:49 mwlib.utils.info >> fetching
u'https://domain:port/wiki/images/9/9f/IMG_0110.JPG'
2008-10-31T12:37:49 mwlib.utils.info >> fetching
'https://domain:port/w/api.php?action=query&meta=siteinfo&format=json'
2008-10-31T12:37:50 mwlib.utils.info >> got
u'https://domain:port/wiki/images/9/9f/IMG_0110.JPG' (2884274B in 0.70s)
2008-10-31T12:37:50 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?action=query&titles=Image:IMG+0110.JPG&iiprop=url&prop=imageinfo&format=json'
2008-10-31T12:37:51 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?action=query&titles=Image:IMG+0110.JPG&iiprop=url&prop=imageinfo&format=json'
(164B in 0.90s)
2008-10-31T12:37:51 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?redirects=1&titles=Image:IMG+0110.JPG&format=json&action=query&rvprop=content&prop=revisions'
2008-10-31T12:37:51 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?redirects=1&titles=Image:IMG+0110.JPG&format=json&action=query&rvprop=content&prop=revisions'
(146B in 0.58s)
2008-10-31T12:37:51 mwlib.utils.info >> fetching
'https://domain:port/w/api.php?action=query&meta=siteinfo&format=json'
2008-10-31T12:37:52 mwlib.utils.error >> HTTP Error 404: Not Found - while
fetching 'https://domain:port/w/api.php?action=query&meta=siteinfo&format=json'
2008-10-31T12:37:52 mwapidb.warn >> Fetching failed. Trying again.
2008-10-31T12:37:52 mwlib.utils.error >> HTTP Error 404: Not Found - while
fetching 'https://domain:port/w/api.php?action=query&meta=siteinfo&format=json'
2008-10-31T12:37:52 mwapidb.warn >> Long request: HTTP request took 2.524761 s
2008-10-31T12:37:52 mwapidb.warn >> Fetching failed. Trying again.
2008-10-31T12:37:52 mwlib.utils.info >> fetching
'https://domain:port/w/api.php?action=query&meta=siteinfo&format=json'
2008-10-31T12:37:52 mwapidb.error >> Got no data from api.php
2008-10-31T12:37:52 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?action=query&titles=Image:ReceiverBoardProtection.svg&prop=templates&tllimit=500&format=json'
2008-10-31T12:37:52 mwlib.utils.error >> HTTP Error 404: Not Found - while
fetching 'https://domain:port/w/api.php?action=query&meta=siteinfo&format=json'
2008-10-31T12:37:52 mwapidb.warn >> Fetching failed. Trying again.
2008-10-31T12:37:53 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?action=query&titles=Image:ReceiverBoardProtection.svg&prop=templates&tllimit=500&format=json'
(91B in 0.66s)
2008-10-31T12:37:53 mwapidb.error >> Got no data from api.php
2008-10-31T12:37:53 mwlib.utils.info >> fetching
'https://domain:port/wiki/api.php?action=query&titles=Image:IMG+0110.JPG&prop=templates&tllimit=500&format=json'
2008-10-31T12:37:54 mwlib.utils.info >> got
'https://domain:port/wiki/api.php?action=query&titles=Image:IMG+0110.JPG&prop=templates&tllimit=500&format=json'
(78B in 0.55s)
PROGRESS: 70%
START WITH PROGRESS
STATUS: rendering
PROGRESS: 71%
2008-10-31T12:37:54 rlwriter.warn >> [Errno 2] No translation file found for
domain: 'mwlib.rl'
STATUS: parsing
PROGRESS: 73%
ARTICLE: u'Receiver Board'
2008-10-31T12:37:54 parser.info >> Parsing "u'Receiver Board'"
PROGRESS: 91%
ARTICLE: ''
STATUS: rendering
2008-10-31T12:37:54 rlwriter.info >> writing article: u'Receiver Board'
2008-10-31T12:37:54 rlwriter.warning >> img can not be opened by PIL
2008-10-31T12:37:56 parser.info >> Parsing "u'License'"
2008-10-31T12:37:56 rlwriter.info >> writing article: u'License'
2008-10-31T12:37:56 rlwriter.warning >> no link target specified
2008-10-31T12:37:56 rlwriter.info >> start rendering:
'/var/cache/pdfserver/578e3f6ea2dec350/tmp6x-Ux9'
2008-10-31T12:37:57 rlwriter.info >> ###### RENDERING OK
STATUS: finished
PROGRESS: 100%
<end of mw-render.log>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---